summaryrefslogtreecommitdiffstats
path: root/filedistribution/src/apps/filedistributor
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-08-17 11:24:31 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2016-08-17 11:24:31 +0200
commitd8828c9ffb5ea66baa1bb46ff7016651d959a163 (patch)
tree7b0be6ad5159999f8b30a633a52aee6568e3456f /filedistribution/src/apps/filedistributor
parentf162d84daf5cd4d183ac416a186abbe48d7839b5 (diff)
Use ListenFailedException
Diffstat (limited to 'filedistribution/src/apps/filedistributor')
-rw-r--r--filedistribution/src/apps/filedistributor/filedistributor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/filedistribution/src/apps/filedistributor/filedistributor.cpp b/filedistribution/src/apps/filedistributor/filedistributor.cpp
index 6a7002e6a57..6a7e5e58cbf 100644
--- a/filedistribution/src/apps/filedistributor/filedistributor.cpp
+++ b/filedistribution/src/apps/filedistributor/filedistributor.cpp
@@ -332,6 +332,10 @@ FileDistributorApplication::Main() {
std::string s = boost::diagnostic_information(e);
EV_STOPPING(programName, s.c_str());
return 4;
+ } catch(const FailedListeningException & e) {
+ std::string s = boost::diagnostic_information(e);
+ EV_STOPPING(programName, s.c_str());
+ return 5;
} catch(const ZKGenericException & e) {
std::string s = boost::diagnostic_information(e);
EV_STOPPING(programName, s.c_str());