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,8 +305,10 @@ void OAuth2Service::startRefreshTimer() {
}
void OAuth2Service::killRefreshTimer() {
if (m_timerId > 0) {
killTimer(m_timerId);
}
}
void OAuth2Service::retrieveAuthCode() {
QString auth_url = m_authUrl + QString("?client_id=%1&scope=%2&"