mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
stop playing back operations in a folder when playback fails (e.g., we're not connected to the server), r=cavin, sr=sspitzer 145048
This commit is contained in:
parent
ff4a3fb80d
commit
c0e378dcc6
@ -107,8 +107,12 @@ nsImapOfflineSync::OnStopRunningUrl(nsIURI* url, nsresult exitCode)
|
||||
// NS_BINDING_ABORTED is used for the user pressing stop, which
|
||||
// should cause us to abort the offline process. Other errors
|
||||
// should allow us to continue.
|
||||
if (exitCode != NS_BINDING_ABORTED)
|
||||
if (NS_SUCCEEDED(exitCode))
|
||||
rv = ProcessNextOperation();
|
||||
// else if it's a non-stop error, and we're doing multiple folders,
|
||||
// go to the next folder.
|
||||
else if (exitCode != NS_BINDING_ABORTED && !m_singleFolderToUpdate)
|
||||
rv = AdvanceToNextFolder();
|
||||
else if (m_listener) // notify main observer.
|
||||
m_listener->OnStopRunningUrl(url, exitCode);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user