Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
88
Issues
88
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
cf618d55
Commit
cf618d55
authored
Mar 13, 2018
by
Ailin Nemui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optional identd
parent
9b17a961
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/main.cpp
src/main.cpp
+6
-4
No files found.
src/main.cpp
View file @
cf618d55
...
...
@@ -135,7 +135,9 @@ int main(int ac, char** av)
std
::
make_shared
<
BiboumiComponent
>
(
p
,
hostname
,
password
);
xmpp_component
->
start
();
IdentdServer
identd
(
*
xmpp_component
,
p
,
static_cast
<
uint16_t
>
(
Config
::
get_int
(
"identd_port"
,
113
)));
std
::
unique_ptr
<
IdentdServer
>
identd
;
if
(
Config
::
get_int
(
"identd_port"
,
113
)
!=
0
)
identd
=
std
::
make_unique
<
IdentdServer
>
(
*
xmpp_component
,
p
,
static_cast
<
uint16_t
>
(
Config
::
get_int
(
"identd_port"
,
113
)));
auto
timeout
=
TimedEventsManager
::
instance
().
get_timeout
();
while
(
p
->
poll
(
timeout
)
!=
-
1
)
...
...
@@ -144,7 +146,7 @@ int main(int ac, char** av)
// Check for empty irc_clients (not connected, or with no joined
// channel) and remove them
xmpp_component
->
clean
();
i
dentd
.
clean
();
i
f
(
identd
)
identd
->
clean
();
if
(
stop
)
{
log_info
(
"Signal received, exiting..."
);
...
...
@@ -157,7 +159,7 @@ int main(int ac, char** av)
#ifdef UDNS_FOUND
dns_handler
.
destroy
();
#endif
i
dentd
.
shutdown
();
i
f
(
identd
)
identd
->
shutdown
();
// Cancel the timer for a potential reconnection
TimedEventsManager
::
instance
().
cancel
(
"XMPP reconnection"
);
}
...
...
@@ -199,7 +201,7 @@ int main(int ac, char** av)
#ifdef UDNS_FOUND
dns_handler
.
destroy
();
#endif
i
dentd
.
shutdown
();
i
f
(
identd
)
identd
->
shutdown
();
}
}
// If the only existing connection is the one to the XMPP component:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment