X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2Fwin32%2FIOManager.c;h=2123b8c3a49067562ba5ffc0ce51f12d08cbf308;hp=993b1fb7170612d459cbb0a2db87bcda37210e2b;hb=8edc7cea056b3de64508d700c1ace9965589a26e;hpb=7cb50e3aea11f934fd1430c5f056f4f0f93f1f23 diff --git a/rts/win32/IOManager.c b/rts/win32/IOManager.c index 993b1fb..2123b8c 100644 --- a/rts/win32/IOManager.c +++ b/rts/win32/IOManager.c @@ -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--; } }