mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
give transfers a tiny bit more time to stop
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user