Refactor scrobbler authentication code
Fix a crash when authentication is cancelled
This commit is contained in:
@@ -52,7 +52,9 @@ LocalRedirectServer::LocalRedirectServer(const bool https, QObject *parent)
|
||||
socket_(nullptr)
|
||||
{}
|
||||
|
||||
LocalRedirectServer::~LocalRedirectServer() {}
|
||||
LocalRedirectServer::~LocalRedirectServer() {
|
||||
if (isListening()) close();
|
||||
}
|
||||
|
||||
bool LocalRedirectServer::GenerateCertificate() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user