long long fExpectedSize;
}
-+ (BlocklistDownloader *) downloader: (tr_handle *) handle;
++ (BlocklistDownloader *) downloader: (tr_handle *) handle; //starts download if not already occuring
++ (BOOL) isRunning;
+
- (void) setViewController: (BlocklistDownloaderViewController *) viewController;
- (void) cancelDownload;
#import "ButtonToolbarItem.h"
#import "GroupToolbarItem.h"
#import "ToolbarSegmentedCell.h"
+#import "BlocklistDownloader.h"
#import "NSApplicationAdditions.h"
#import "NSStringAdditions.h"
#import "NSMenuAdditions.h"
- (void) applicationWillTerminate: (NSNotification *) notification
{
- #warning stop blocklist download
+ //stop blocklist download
+ if ([BlocklistDownloader isRunning])
+ [[BlocklistDownloader downloader: fLib] cancelDownload];
//stop timers and notification checking
[[NSNotificationCenter defaultCenter] removeObserver: self];