oops, got the sense of the error case wrong
[ghc-hetmet.git] / rts / win32 / IOManager.c
index 993b1fb..2123b8c 100644 (file)
@@ -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--;
            }
        }