bug 59526
sr=waterson r=valeski This bullet-proofs the code so the one thread does not exit twice. git-svn-id: svn://10.0.0.236/trunk@82513 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -101,6 +101,12 @@ nsThread::Exit(void* arg)
|
||||
{
|
||||
nsThread* self = (nsThread*)arg;
|
||||
self->mDead = PR_TRUE;
|
||||
|
||||
if (self->mDead) {
|
||||
NS_ERROR("attempt to Exit() thread twice");
|
||||
return;
|
||||
}
|
||||
|
||||
PR_LOG(nsIThreadLog, PR_LOG_DEBUG,
|
||||
("nsIThread %p exited\n", self));
|
||||
NS_RELEASE(self);
|
||||
|
||||
Reference in New Issue
Block a user