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

oops, got the sense of the error case wrong

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