mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-01 01:53:23 -05:00
[spotify] Clear spotify_status on logout (clears logged_in and username)
This commit is contained in:
parent
de2e1b32ed
commit
c4d57aa5d1
@ -719,6 +719,8 @@ logout(void)
|
|||||||
librespotc_logout(ctx->session);
|
librespotc_logout(ctx->session);
|
||||||
ctx->session = NULL;
|
ctx->session = NULL;
|
||||||
|
|
||||||
|
memset(&ctx->status, 0, sizeof(ctx->status));
|
||||||
|
|
||||||
pthread_mutex_unlock(&ctx->lock);
|
pthread_mutex_unlock(&ctx->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user