diff --git a/Source/common/SNTFileWatcher.m b/Source/common/SNTFileWatcher.m index 3d372ba68..300cfb6c0 100644 --- a/Source/common/SNTFileWatcher.m +++ b/Source/common/SNTFileWatcher.m @@ -90,7 +90,7 @@ - (void)stopWatchingFile { if (!self.monitoringSource) return; int fd = (int)dispatch_source_get_handle(self.monitoringSource); - dispatch_source_set_event_handler(self.monitoringSource, NULL); + dispatch_source_set_event_handler_f(self.monitoringSource, NULL); dispatch_source_set_cancel_handler(self.monitoringSource, ^{ close(fd); });