From 79557e71e2ae690dd5eb3cc16a6b946b1435887a Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 26 Oct 2017 20:20:17 +0200 Subject: [PATCH] Kill timer only when needed. --- src/network-web/oauth2service.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/network-web/oauth2service.cpp b/src/network-web/oauth2service.cpp index 8a2185ed0..75ae97917 100755 --- a/src/network-web/oauth2service.cpp +++ b/src/network-web/oauth2service.cpp @@ -305,7 +305,9 @@ void OAuth2Service::startRefreshTimer() { } void OAuth2Service::killRefreshTimer() { - killTimer(m_timerId); + if (m_timerId > 0) { + killTimer(m_timerId); + } } void OAuth2Service::retrieveAuthCode() {