aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp/Discovery.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 21:48:33 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 21:48:33 +0100
commit71928b473e41f710934790bf2609a2e6ec772297 (patch)
treeb39d0b3538ed595f382c84832e662a4b025cf92d /src/db/upnp/Discovery.cxx
parenta0bee9fa0a821f1654d1c4c306441bd8526a0a5b (diff)
downloadmpd-71928b473e41f710934790bf2609a2e6ec772297.tar.gz
mpd-71928b473e41f710934790bf2609a2e6ec772297.tar.xz
mpd-71928b473e41f710934790bf2609a2e6ec772297.zip
db/upnp/Discovery: unlock mutex before deleting DiscoveredTask
Diffstat (limited to 'src/db/upnp/Discovery.cxx')
-rw-r--r--src/db/upnp/Discovery.cxx3
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;
}