Kill timer only when needed.

This commit is contained in:
Martin Rotter 2017-10-26 20:20:17 +02:00
parent 781284f442
commit 79557e71e2

View File

@ -305,7 +305,9 @@ void OAuth2Service::startRefreshTimer() {
}
void OAuth2Service::killRefreshTimer() {
killTimer(m_timerId);
if (m_timerId > 0) {
killTimer(m_timerId);
}
}
void OAuth2Service::retrieveAuthCode() {