Changeset 961 for trunk/macosx/Torrent.m
- Timestamp:
- Sep 29, 2006, 5:30:36 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r960 r961 262 262 } 263 263 264 if( fStat->error & TR_ETRACKER ) 265 [fStatusString setString: [@"Error: " stringByAppendingString: 266 [NSString stringWithUTF8String: fStat->trackerError]]]; 264 if (fStat->error & TR_ETRACKER) 265 { 266 [fStatusString setString: [@"Error: " stringByAppendingString: [NSString stringWithUTF8String: fStat->trackerError]]]; 267 if (!fError && [self isActive]) 268 { 269 fError = YES; 270 if (![self isSeeding]) 271 [[NSNotificationCenter defaultCenter] postNotificationName: @"StoppedDownloading" object: self]; 272 } 273 } 274 else 275 { 276 if (fError) 277 fError = NO; 278 } 267 279 268 280 if ([self isActive]) … … 330 342 - (void) stopTransfer 331 343 { 344 fError = NO; 345 332 346 if ([self isActive]) 333 347 { … … 431 445 NSLog(@"Volume: %@", volume); 432 446 NSLog(@"Remaining disk space: %qu (%@)", remainingSpace, [NSString stringForFileSize: remainingSpace]); 433 NSLog(@"Progress: %f", [self progress]);434 NSLog(@"Torrent total size: %qu (%@)", [self size], [NSString stringForFileSize: [self size]]);435 447 NSLog(@"Torrent remaining size: %qu (%@)", torrentRemaining, [NSString stringForFileSize: torrentRemaining]); 436 448 … … 791 803 fWaitToStart = waitToStart ? [waitToStart boolValue] : [fDefaults boolForKey: @"AutoStartDownload"]; 792 804 fOrderValue = orderValue ? [orderValue intValue] : tr_torrentCount(fLib) - 1; 805 fError = NO; 793 806 794 807 NSString * fileType = fInfo->multifile ? NSFileTypeForHFSTypeCode('fldr') : [[self name] pathExtension];
Note: See TracChangeset
for help on using the changeset viewer.