зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1455057 - EventSource::Dispatch can fail if the worker is shutting down, r=asuth
This commit is contained in:
Родитель
9e47054ab5
Коммит
6cb16a934c
|
@ -1331,7 +1331,11 @@ EventSourceImpl::DispatchFailConnection()
|
|||
this,
|
||||
&EventSourceImpl::FailConnection),
|
||||
NS_DISPATCH_NORMAL);
|
||||
MOZ_ASSERT(NS_SUCCEEDED(rv));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
// if the worker is shutting down, the dispatching of normal WorkerRunnables
|
||||
// fails.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче