Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
c836c770
Commit
c836c770
authored
Jan 04, 2012
by
JINMEI Tatuya
Browse files
[805] a few minor cleanups: typo; position of catch; eliminating an unnecessary
temporary variable.
parent
4fdec347
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/server_common/portconfig.cc
View file @
c836c770
...
...
@@ -153,14 +153,12 @@ installListenAddresses(const AddressList& newAddresses,
LOG_ERROR
(
logger
,
SRVCOMM_ADDRESS_FAIL
).
arg
(
e
.
what
());
try
{
setAddresses
(
service
,
addressStore
);
}
catch
(
const
exception
&
e2
)
{
}
catch
(
const
exception
&
e2
)
{
LOG_FATAL
(
logger
,
SRVCOMM_ADDRESS_UNRECOVERABLE
).
arg
(
e2
.
what
());
// If we can't set the new ones, nor the old ones, at last
// If we can't set the new ones, nor the old ones, at l
e
ast
// releasing everything should work. If it doesn't, there isn't
// anything else we could do.
AddressList
empty
;
setAddresses
(
service
,
empty
);
setAddresses
(
service
,
AddressList
());
addressStore
.
clear
();
}
//Anyway the new configure has problem, we need to notify configure
...
...
Write
Preview
Supports
Markdown
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