db/upnp/WorkQueue: remove IsOK() check from put()

Not necessary, not worth the check.
This commit is contained in:
Max Kellermann 2014-01-14 11:46:18 +01:00
parent 60486bcc46
commit ee4c3ff1b8
1 changed files with 0 additions and 6 deletions

View File

@ -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);