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
{
const std::lock_guard<Mutex> protect(mutex);
track_request.reset();
try {
SetInput(OpenCurlInputStream(url.c_str(), {},
mutex, cond));
......
......@@ -74,6 +74,7 @@ TidalSessionManager::OnTidalLoginSuccess(std::string _session) noexcept
{
{
const std::lock_guard<Mutex> protect(mutex);
login_request.reset();
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