workerTaskStop(): set task->cap = NULL
authorSimon Marlow <simonmar@microsoft.com>
Tue, 6 Mar 2007 14:04:53 +0000 (14:04 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 6 Mar 2007 14:04:53 +0000 (14:04 +0000)
avoids an assertion failure in newBoundTask()

rts/Task.c

index 038e861..0ec60f7 100644 (file)
@@ -258,6 +258,7 @@ workerTaskStop (Task *task)
     ASSERT(myTask() == task);
 #endif
 
+    task->cap = NULL;
     taskTimeStamp(task);
     task->stopped = rtsTrue;
     tasksRunning--;