Commit 8edc7cea authored by Simon Marlow's avatar Simon Marlow

oops, got the sense of the error case wrong

parent 7cb50e3a
......@@ -340,7 +340,7 @@ depositWorkItem( unsigned int reqID,
if ( (ioMan->workersIdle < ioMan->queueSize) ) {
/* No, go ahead and create another. */
ioMan->numWorkers++;
if (NewIOWorkerThread(ioMan)) {
if (!NewIOWorkerThread(ioMan)) {
ioMan->numWorkers--;
}
}
......
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