summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupDaemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bbackupd/BackupDaemon.cpp')
-rw-r--r--bin/bbackupd/BackupDaemon.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp
index 3dbae4d6..7f883e21 100644
--- a/bin/bbackupd/BackupDaemon.cpp
+++ b/bin/bbackupd/BackupDaemon.cpp
@@ -477,25 +477,23 @@ void BackupDaemon::Run()
}
catch(...)
{
- if(mapCommandSocketInfo.get())
+ try
{
- try
- {
- mapCommandSocketInfo.reset();
- }
- catch(std::exception &e)
- {
- BOX_WARNING("Internal error while "
- "closing command socket after "
- "another exception: " << e.what());
- }
- catch(...)
- {
- BOX_WARNING("Error closing command socket "
- "after exception, ignored.");
- }
+ mapCommandSocketInfo.reset();
+ }
+ catch(std::exception &e)
+ {
+ BOX_WARNING("Internal error while closing command "
+ "socket after another exception, ignored: " <<
+ e.what());
+ }
+ catch(...)
+ {
+ BOX_WARNING("Error closing command socket after "
+ "exception, ignored.");
}
+ mapCommandSocketPollTimer.reset();
Timers::Cleanup();
throw;
@@ -503,6 +501,7 @@ void BackupDaemon::Run()
// Clean up
mapCommandSocketInfo.reset();
+ mapCommandSocketPollTimer.reset();
Timers::Cleanup();
}