Bug 1480965 - Fix review nit. r=asuth

--HG--
extra : rebase_source : 5403d4a11f6753d086fcc7a64314b72e31419a30
This commit is contained in:
Blake Kaplan 2018-08-22 15:34:16 -04:00
parent 80b21bd224
commit f91879804f

View File

@ -1941,7 +1941,7 @@ ServiceWorkerPrivate::TerminateWorker()
}
Unused << NS_WARN_IF(!mWorkerPrivate->Cancel());
mWorkerPrivate = nullptr;
RefPtr<WorkerPrivate> workerPrivate(mWorkerPrivate.forget());
mSupportsArray.Clear();
// Any pending events are never going to fire on this worker. Cancel