#2041 bounce Downloads stack when downloads are complete

This commit is contained in:
Mitchell Livingston 2009-05-09 17:11:21 +00:00
parent f9aa317998
commit a0e34bc270
1 changed files with 4 additions and 0 deletions

View File

@ -1690,6 +1690,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
if (![fWindow isMainWindow])
[fBadger incrementCompleted];
//bounce download stack
[[NSDistributedNotificationCenter defaultCenter] postNotificationName: @"com.apple.DownloadFileFinished"
object: [[torrent downloadFolder] stringByAppendingPathComponent: [torrent name]]];
if ([fDefaults boolForKey: @"QueueSeed"] && [self numToStartFromQueue: NO] <= 0)
{
[torrent stopTransfer];