input/qobuz: dispose the TidalLoginRequest earlier

This commit is contained in:
Max Kellermann 2018-01-21 20:17:50 +01:00
parent 2ce10f2fed
commit d084950b1a
1 changed files with 1 additions and 2 deletions

View File

@ -90,6 +90,7 @@ TidalSessionManager::OnTidalLoginError(std::exception_ptr e) noexcept
{
{
const std::lock_guard<Mutex> protect(mutex);
login_request.reset();
error = e;
}
@ -107,6 +108,4 @@ TidalSessionManager::InvokeHandlers() noexcept
const ScopeUnlock unlock(mutex);
h.OnTidalSession();
}
login_request.reset();
}