input/qobuz: dispose the QobuzLoginRequest earlier

This commit is contained in:
Max Kellermann 2018-01-21 19:45:03 +01:00
parent 91a512606b
commit 2da6ab2a45
1 changed files with 2 additions and 2 deletions

View File

@ -131,6 +131,7 @@ QobuzClient::OnQobuzLoginSuccess(QobuzSession &&_session) noexcept
{
const std::lock_guard<Mutex> protect(mutex);
session = std::move(_session);
login_request.reset();
}
ScheduleInvokeHandlers();
@ -142,6 +143,7 @@ QobuzClient::OnQobuzLoginError(std::exception_ptr _error) noexcept
{
const std::lock_guard<Mutex> protect(mutex);
error = std::move(_error);
login_request.reset();
}
ScheduleInvokeHandlers();
@ -158,8 +160,6 @@ QobuzClient::InvokeHandlers() noexcept
const ScopeUnlock unlock(mutex);
h.OnQobuzSession();
}
login_request.reset();
}
std::string