Commit 71928b47 authored by Max Kellermann's avatar Max Kellermann

db/upnp/Discovery: unlock mutex before deleting DiscoveredTask

parent a0bee9fa
......@@ -88,8 +88,9 @@ UPnPDeviceDirectory::discoExplorer()
}
}
const ScopeLock protect(mutex);
mutex.lock();
directories[std::move(tsk->deviceId)] = std::move(d);
mutex.unlock();
delete tsk;
}
......
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