Bug 396833 - "ASSERTION: nsAppShell::Exit() called redundantly" on shutdown. Convert the assertion to a warning because the problem doesn't really have any bad consequences, thus allowing assertions to be fatal (!) on the Mac debug tinderbox. r+sr+a=roc

This commit is contained in:
jwalden@mit.edu 2007-09-22 06:52:14 -07:00
parent c11d00e32d
commit 3e22e6ba33

View File

@ -487,9 +487,10 @@ nsAppShell::Exit(void)
// XPCOM shutdown notification that nsBaseAppShell has registered to
// receive. So we need to ensure that multiple calls won't break anything.
// But we should also complain about it (since it isn't quite kosher).
NS_ASSERTION(!mTerminated, "nsAppShell::Exit() called redundantly");
if (mTerminated)
if (mTerminated) {
NS_WARNING("nsAppShell::Exit() called redundantly");
return NS_OK;
}
mTerminated = PR_TRUE;