Fix retry timer not being unregistered properly
This is cherry-pick of 70ba53caf4
from symless/synergy-core
This commit is contained in:
parent
4ec30b6ade
commit
3600f4b255
|
@ -302,8 +302,8 @@ void
|
||||||
ServerApp::stopRetryTimer()
|
ServerApp::stopRetryTimer()
|
||||||
{
|
{
|
||||||
if (m_timer != NULL) {
|
if (m_timer != NULL) {
|
||||||
|
m_events->removeHandler(Event::kTimer, m_timer);
|
||||||
m_events->deleteTimer(m_timer);
|
m_events->deleteTimer(m_timer);
|
||||||
m_events->removeHandler(Event::kTimer, NULL);
|
|
||||||
m_timer = NULL;
|
m_timer = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue