From 676e20834c8cfa53dda25a851ce4fb4f3171ac6a Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 20 Sep 2016 11:47:06 +0000 Subject: Exit and quickly restart on ZKConnectionLossEvent. --- filedistribution/src/apps/filedistributor/filedistributor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'filedistribution') diff --git a/filedistribution/src/apps/filedistributor/filedistributor.cpp b/filedistribution/src/apps/filedistributor/filedistributor.cpp index a690b7dc14b..4d81970f75c 100644 --- a/filedistribution/src/apps/filedistributor/filedistributor.cpp +++ b/filedistribution/src/apps/filedistributor/filedistributor.cpp @@ -292,6 +292,10 @@ FileDistributorApplication::Main() { std::string s = boost::diagnostic_information(e); EV_STOPPING(programName, s.c_str()); return 5; + } catch(const ZKConnectionLossException & e) { + std::string s = boost::diagnostic_information(e); + EV_STOPPING(programName, s.c_str()); + return 6; } catch(const ZKGenericException & e) { std::string s = boost::diagnostic_information(e); EV_STOPPING(programName, s.c_str()); -- cgit v1.2.3