Fix retry timer not being unregistered properly

This is cherry-pick of 70ba53caf4 from symless/synergy-core
This commit is contained in:
Povilas Kanapickas 2019-08-22 18:11:03 +03:00
parent 4ec30b6ade
commit 3600f4b255
1 changed files with 1 additions and 1 deletions

View File

@ -302,8 +302,8 @@ void
ServerApp::stopRetryTimer()
{
if (m_timer != NULL) {
m_events->removeHandler(Event::kTimer, m_timer);
m_events->deleteTimer(m_timer);
m_events->removeHandler(Event::kTimer, NULL);
m_timer = NULL;
}
}