Bug 233611: Download Manager Closes after download is cancelled, retried, and cancelled again, patch by Son Le <son.le0@gmail.com>, r=mconnor
git-svn-id: svn://10.0.0.236/trunk@206499 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
89ea1cf2cc
commit
d2eb8a19b0
@ -2214,6 +2214,8 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gObserverService->NotifyObservers(NS_STATIC_CAST(nsIDownload *, this), "dl-done", nsnull);
|
||||
}
|
||||
|
||||
nsAutoString path;
|
||||
@ -2242,8 +2244,6 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
|
||||
}
|
||||
#endif
|
||||
|
||||
gObserverService->NotifyObservers(NS_STATIC_CAST(nsIDownload *, this), "dl-done", nsnull);
|
||||
|
||||
// break the cycle we created in AddDownload
|
||||
mCancelable = nsnull;
|
||||
|
||||
@ -2398,4 +2398,3 @@ nsDownload::IsPaused()
|
||||
{
|
||||
return mPaused;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user