]> granicus.if.org Git - transmission/commitdiff
#5241 Mac crash with VDKQueue
authorMitchell Livingston <livings124@transmissionbt.com>
Fri, 8 Feb 2013 13:31:38 +0000 (13:31 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Fri, 8 Feb 2013 13:31:38 +0000 (13:31 +0000)
macosx/Controller.m

index f77627374ddd3742362ee94e7848be0416516f2d..3c8a54f313211606390e3f4625fd5b5ba5f49ecb 100644 (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;