Commit d6b62d75 authored by Max Kellermann's avatar Max Kellermann

input/tidal: delete request objects upon completion

parent ab9d9541
...@@ -102,6 +102,8 @@ TidalInputStream::OnTidalTrackSuccess(std::string url) noexcept ...@@ -102,6 +102,8 @@ TidalInputStream::OnTidalTrackSuccess(std::string url) noexcept
{ {
const std::lock_guard<Mutex> protect(mutex); const std::lock_guard<Mutex> protect(mutex);
track_request.reset();
try { try {
SetInput(OpenCurlInputStream(url.c_str(), {}, SetInput(OpenCurlInputStream(url.c_str(), {},
mutex, cond)); mutex, cond));
......
...@@ -74,6 +74,7 @@ TidalSessionManager::OnTidalLoginSuccess(std::string _session) noexcept ...@@ -74,6 +74,7 @@ TidalSessionManager::OnTidalLoginSuccess(std::string _session) noexcept
{ {
{ {
const std::lock_guard<Mutex> protect(mutex); const std::lock_guard<Mutex> protect(mutex);
login_request.reset();
session = std::move(_session); session = std::move(_session);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment