Bug 1416724 - part 4 - AbstractThread::Dispatch return value check in netwerk/base, r=smaug
This commit is contained in:
@@ -1548,8 +1548,7 @@ private:
|
|||||||
MonitorAutoLock lock(mMonitor);
|
MonitorAutoLock lock(mMonitor);
|
||||||
|
|
||||||
nsCOMPtr<nsIRunnable> runnable = this;
|
nsCOMPtr<nsIRunnable> runnable = this;
|
||||||
nsresult rv = mTaskQueue->Dispatch(runnable.forget(),
|
nsresult rv = mTaskQueue->Dispatch(runnable.forget());
|
||||||
AbstractThread::DontAssertDispatchSuccess);
|
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
lock.Wait();
|
lock.Wait();
|
||||||
@@ -1600,8 +1599,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
nsCOMPtr<nsIRunnable> runnable = this;
|
nsCOMPtr<nsIRunnable> runnable = this;
|
||||||
rv = mTaskQueue->Dispatch(runnable.forget(),
|
rv = mTaskQueue->Dispatch(runnable.forget());
|
||||||
AbstractThread::DontAssertDispatchSuccess);
|
|
||||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||||
OperationCompleted(rv);
|
OperationCompleted(rv);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user