Commit ee4c3ff1 authored by Max Kellermann's avatar Max Kellermann

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

Not necessary, not worth the check.
parent 60486bcc
...@@ -121,12 +121,6 @@ public: ...@@ -121,12 +121,6 @@ public:
{ {
const ScopeLock protect(mutex); 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) { while (IsOK() && high > 0 && queue.size() >= high) {
// Keep the order: we test IsOK() AFTER the sleep... // Keep the order: we test IsOK() AFTER the sleep...
client_cond.wait(mutex); client_cond.wait(mutex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment