mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 13:41:17 +00:00
Start and stop transfers for launch/quit without performing checks for waiting transfers, etc. This should fix saving the incorrect states of running transfers between launches.
This commit is contained in:
@@ -302,7 +302,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||
|
||||
- (void) applicationWillTerminate: (NSNotification *) notification
|
||||
{
|
||||
// Stop updating the interface
|
||||
//stop updating the interface
|
||||
[fTimer invalidate];
|
||||
|
||||
//save history
|
||||
@@ -320,9 +320,9 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||
if (fUpdateInProgress)
|
||||
return;
|
||||
|
||||
//stop running torrents and wait for them to stop (5 seconds timeout)
|
||||
[fTorrents makeObjectsPerformSelector: @selector(stopTransfer)];
|
||||
|
||||
//stop running transfers and wait for them to stop (5 seconds timeout)
|
||||
[fTorrents makeObjectsPerformSelector: @selector(stopTransferForQuit)];
|
||||
|
||||
NSDate * start = [NSDate date];
|
||||
Torrent * torrent;
|
||||
while ([fTorrents count] > 0)
|
||||
|
||||
Reference in New Issue
Block a user