summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-14 11:46:18 +0100
committerMax Kellermann <max@duempel.org>2014-01-14 11:46:18 +0100
commitee4c3ff1b815fb9bf9e03449eb50af04a559bd99 (patch)
treefe00b72371d28882a1b9ccd67b2fc64a572dd745 /src
parent60486bcc46bda559c5cfbd228ebc54c8d7f313f9 (diff)
db/upnp/WorkQueue: remove IsOK() check from put()
Not necessary, not worth the check.
Diffstat (limited to 'src')
-rw-r--r--src/db/upnp/WorkQueue.hxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/db/upnp/WorkQueue.hxx b/src/db/upnp/WorkQueue.hxx
index 7dcf08c1f..285fb8c4e 100644
--- a/src/db/upnp/WorkQueue.hxx
+++ b/src/db/upnp/WorkQueue.hxx
@@ -121,12 +121,6 @@ public:
{
const ScopeLock protect(mutex);
- if (!IsOK()) {
- LOGERR(("WorkQueue::put:%s: !ok or mutex_lock failed\n",
- name.c_str()));
- return false;
- }
-
while (IsOK() && high > 0 && queue.size() >= high) {
// Keep the order: we test IsOK() AFTER the sleep...
client_cond.wait(mutex);