[spotify] Clear spotify_status on logout (clears logged_in and username)

This commit is contained in:
ejurgensen 2021-10-05 20:46:44 +02:00
parent de2e1b32ed
commit c4d57aa5d1

View File

@ -719,6 +719,8 @@ logout(void)
librespotc_logout(ctx->session);
ctx->session = NULL;
memset(&ctx->status, 0, sizeof(ctx->status));
pthread_mutex_unlock(&ctx->lock);
}