db/upnp/Discovery: use class IntrusiveList

This commit is contained in:
Max Kellermann
2021-02-24 20:38:27 +01:00
parent aa227cded1
commit 5ebe23e4bb
2 changed files with 6 additions and 9 deletions

View File

@@ -49,8 +49,8 @@ void
UPnPDeviceDirectory::Downloader::Destroy() noexcept
{
const std::lock_guard<Mutex> protect(parent.mutex);
parent.downloaders.erase_and_dispose(parent.downloaders.iterator_to(*this),
DeleteDisposer());
unlink();
delete this;
}
void