From b15027b8ce6a4146628426e9948b287085e460de Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 8 Feb 2013 13:31:38 +0000 Subject: [PATCH] #5241 Mac crash with VDKQueue --- macosx/Controller.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index f77627374..3c8a54f31 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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;