1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-17 11:10:31 +01:00

Clear access token when login is expired

This commit is contained in:
Jonas Kvinge 2020-05-10 14:53:40 +02:00
parent 5d6b0fa329
commit 1b8dedb4ed

View File

@ -373,6 +373,7 @@ QByteArray SpotifyCoverProvider::GetReplyData(QNetworkReply *reply) {
int status = obj_error["status"].toInt(); int status = obj_error["status"].toInt();
QString message = obj_error["message"].toString(); QString message = obj_error["message"].toString();
error = QString("%1 (%2)").arg(message).arg(status); error = QString("%1 (%2)").arg(message).arg(status);
if (reply->error() == 401) access_token_.clear();
} }
} }
} }