give transfers a tiny bit more time to stop

This commit is contained in:
Mitchell Livingston
2006-07-03 11:20:07 +00:00
parent 16991fb9b7
commit b1322facad

View File

@@ -305,8 +305,9 @@ static void sleepCallBack(void * controller, io_service_t y,
//stop updating the interface
[fTimer invalidate];
//save history
//save history and stop running torrents
[self updateTorrentHistory];
[fTorrents makeObjectsPerformSelector: @selector(stopTransferForQuit)];
//remember window states
[fDefaults setBool: [[fInfoController window] isVisible] forKey: @"InfoVisible"];
@@ -318,9 +319,6 @@ static void sleepCallBack(void * controller, io_service_t y,
//clear badge
[fBadger clearBadge];
//stop running transfers
[fTorrents makeObjectsPerformSelector: @selector(stopTransferForQuit)];
//end quickly if updated version will open
if (fUpdateInProgress)
return;