1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

#5241 Mac crash with VDKQueue

This commit is contained in:
Mitchell Livingston 2013-02-08 13:31:38 +00:00
parent 5a04552631
commit b15027b8ce

View file

@ -2956,9 +2956,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
-(void) VDKQueue: (VDKQueue *) queue receivedNotification: (NSString*) notification forPath: (NSString*) fpath
{
#warning remove log
NSLog(@"%@",notification);
NSParameterAssert([notification isEqualToString:VDKQueueWriteNotification]);
//don't assume that just because we're watching for write notification, we'll only receive write notifications
if (![fDefaults boolForKey: @"AutoImport"] || ![fDefaults stringForKey: @"AutoImportDirectory"])
return;