Fixed retry timer not being unregistered properly (#6077)

Closes #6495
This commit is contained in:
Radek Smejkal 2019-05-03 19:05:17 +02:00 committed by Jnewbon
parent 667d79263d
commit 70ba53caf4
1 changed files with 5 additions and 5 deletions

View File

@ -304,11 +304,11 @@ ServerApp::closeServer(Server* server)
void
ServerApp::stopRetryTimer()
{
if (m_timer != NULL) {
m_events->deleteTimer(m_timer);
m_events->removeHandler(Event::kTimer, NULL);
m_timer = NULL;
}
if (m_timer != NULL) {
m_events->removeHandler(Event::kTimer, m_timer);
m_events->deleteTimer(m_timer);
m_timer = NULL;
}
}
void