diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-09-04 01:36:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-09-04 01:36:13 +0000 |
commit | a134f6eca8102400f41ae0a1e2e9ab3236b1649b (patch) | |
tree | 614ed773d8a00bc8d6c1c4a7c296877adfd878a2 /bin | |
parent | 426a506afd1ffb3bd67e61b4693ee9bb968097a1 (diff) |
Backport Timers::Cleanup that's safe to use in test cleanup.
Allows it not to throw an exception if timers weren't initialised when
cleanup was requested. Normally we want an exception thrown, but not while
we're cleaning up a test that might have failed with timers uninitialised.
More timers fixes after cleanup no-exception option.
Merged back changes from the test refactor branch to reduce diffs.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index 5b965c26..b62aecb5 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -490,6 +490,7 @@ void BackupDaemon::Run() "exception, ignored."); } + mapCommandSocketPollTimer.reset(); Timers::Cleanup(); throw; @@ -497,6 +498,7 @@ void BackupDaemon::Run() // Clean up mapCommandSocketInfo.reset(); + mapCommandSocketPollTimer.reset(); Timers::Cleanup(); } |