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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user