db/upnp/Discovery: unlock mutex before deleting DiscoveredTask
This commit is contained in:
parent
a0bee9fa0a
commit
71928b473e
@ -88,8 +88,9 @@ UPnPDeviceDirectory::discoExplorer()
|
||||
}
|
||||
}
|
||||
|
||||
const ScopeLock protect(mutex);
|
||||
mutex.lock();
|
||||
directories[std::move(tsk->deviceId)] = std::move(d);
|
||||
mutex.unlock();
|
||||
|
||||
delete tsk;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user