Skip to content
Snippets Groups Projects
Commit 26261b2b authored by deuce's avatar deuce
Browse files

Do not call Suspend while in a finalize function (GC is obviously already

running).
parent ffa6fb2d
No related branches found
No related tags found
No related merge requests found
......@@ -65,10 +65,8 @@ static void js_finalize_queue(JSContext *cx, JSObject *obj)
if((q=(msg_queue_t*)JS_GetPrivate(cx,obj))==NULL)
return;
rc=JS_SUSPENDREQUEST(cx);
if(msgQueueDetach(q)==0 && (n=listFindNode(&named_queues,q,/* length=0 for ptr compare */0))!=NULL)
listRemoveNode(&named_queues,n,FALSE);
JS_RESUMEREQUEST(cx, rc);
JS_SetPrivate(cx, obj, NULL);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment