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

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