Fix a few issues reported by static analyzers

This commit is contained in:
Florent Le Coz
2014-12-17 13:37:57 +01:00
parent 0ab5ecea13
commit 720e31a511
14 changed files with 11 additions and 28 deletions
-1
View File
@@ -286,7 +286,6 @@ void XmppComponent::handle_handshake(const Stanza& stanza)
uint64_t usec;
if (sd_watchdog_enabled(0, &usec) > 0)
{
std::chrono::microseconds delay(usec);
TimedEventsManager::instance().add_event(TimedEvent(
std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::microseconds(usec / 2)),
[]() { sd_notify(0, "WATCHDOG=1"); }));