diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 21:48:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 21:48:33 +0100 |
commit | 71928b473e41f710934790bf2609a2e6ec772297 (patch) | |
tree | b39d0b3538ed595f382c84832e662a4b025cf92d /src | |
parent | a0bee9fa0a821f1654d1c4c306441bd8526a0a5b (diff) | |
download | mpd-71928b473e41f710934790bf2609a2e6ec772297.tar.gz mpd-71928b473e41f710934790bf2609a2e6ec772297.tar.xz mpd-71928b473e41f710934790bf2609a2e6ec772297.zip |
db/upnp/Discovery: unlock mutex before deleting DiscoveredTask
Diffstat (limited to 'src')
-rw-r--r-- | src/db/upnp/Discovery.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/upnp/Discovery.cxx b/src/db/upnp/Discovery.cxx index 082e470ad..807308a12 100644 --- a/src/db/upnp/Discovery.cxx +++ b/src/db/upnp/Discovery.cxx @@ -88,8 +88,9 @@ UPnPDeviceDirectory::discoExplorer() } } - const ScopeLock protect(mutex); + mutex.lock(); directories[std::move(tsk->deviceId)] = std::move(d); + mutex.unlock(); delete tsk; } |