зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1120395 - Deal with shutdown without crashing. r=mmc/gcp
This commit is contained in:
Родитель
e9b08641d5
Коммит
a3e940d7ae
|
@ -493,10 +493,16 @@ nsUrlClassifierStreamUpdater::OnStartRequest(nsIRequest *request,
|
|||
|
||||
if (downloadError) {
|
||||
LOG(("nsUrlClassifierStreamUpdater::Download error [this=%p]", this));
|
||||
|
||||
// It's possible for mDownloadErrorCallback to be null on shutdown.
|
||||
if (mDownloadErrorCallback) {
|
||||
mDownloadErrorCallback->HandleEvent(strStatus);
|
||||
}
|
||||
|
||||
mDownloadError = true;
|
||||
status = NS_ERROR_ABORT;
|
||||
} else if (NS_SUCCEEDED(status)) {
|
||||
MOZ_ASSERT(mDownloadErrorCallback);
|
||||
mBeganStream = true;
|
||||
LOG(("nsUrlClassifierStreamUpdater::Beginning stream [this=%p]", this));
|
||||
rv = mDBService->BeginStream(mStreamTable);
|
||||
|
|
Загрузка…
Ссылка в новой задаче