Bug 342074 - JSD crashes on exit when there's two clients

r+a=timeless


git-svn-id: svn://10.0.0.236/trunk@200431 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gijskruitbosch%gmail.com
2006-06-20 15:54:58 +00:00
parent 7a24439aea
commit 713e81a1ce

View File

@@ -2599,6 +2599,9 @@ jsdService::GetPauseDepth(PRUint32 *_rval)
NS_IMETHODIMP
jsdService::Pause(PRUint32 *_rval)
{
if (!mCx)
return NS_ERROR_NOT_INITIALIZED;
if (++mPauseLevel == 1) {
JSD_SetErrorReporter (mCx, NULL, NULL);
JSD_ClearThrowHook (mCx);
@@ -2618,6 +2621,9 @@ jsdService::Pause(PRUint32 *_rval)
NS_IMETHODIMP
jsdService::UnPause(PRUint32 *_rval)
{
if (!mCx)
return NS_ERROR_NOT_INITIALIZED;
if (mPauseLevel == 0)
return NS_ERROR_NOT_AVAILABLE;