From 3600f4b255cfd5857d12da2cb80d5269ac385c1c Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Thu, 22 Aug 2019 18:11:03 +0300 Subject: [PATCH] Fix retry timer not being unregistered properly This is cherry-pick of 70ba53caf47 from symless/synergy-core --- src/lib/barrier/ServerApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/barrier/ServerApp.cpp b/src/lib/barrier/ServerApp.cpp index fbb5092c..d91e094b 100644 --- a/src/lib/barrier/ServerApp.cpp +++ b/src/lib/barrier/ServerApp.cpp @@ -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; } }