Skip to content

Commit

Permalink
Replace now deprecated FSEventStreamScheduleWithRunLoop with FSEventS…
Browse files Browse the repository at this point in the history
…treamSetDispatchQueue

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed Jan 2, 2023
1 parent 7918a34 commit 784327f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/folderwatcher_mac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void FolderWatcherPrivate::startWatching()

CFRelease(pathsToWatch);
CFRelease(folderCF);
FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
FSEventStreamSetDispatchQueue(_stream, dispatch_get_main_queue());
FSEventStreamStart(_stream);
}

Expand Down

0 comments on commit 784327f

Please sign in to comment.