input/tidal: delete request objects upon completion

This commit is contained in:
Max Kellermann 2018-01-20 00:34:44 +01:00
parent ab9d9541a8
commit d6b62d7512
2 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,8 @@ TidalInputStream::OnTidalTrackSuccess(std::string url) noexcept
{
const std::lock_guard<Mutex> protect(mutex);
track_request.reset();
try {
SetInput(OpenCurlInputStream(url.c_str(), {},
mutex, cond));

View File

@ -74,6 +74,7 @@ TidalSessionManager::OnTidalLoginSuccess(std::string _session) noexcept
{
{
const std::lock_guard<Mutex> protect(mutex);
login_request.reset();
session = std::move(_session);
}