Skip to content

Commit

Permalink
Merge pull request #5272 from nextcloud/bugfix/fseventstreamscehduler…
Browse files Browse the repository at this point in the history
…unloop-deprecation-fix

Replace now deprecated FSEventStreamScheduleWithRunLoop with FSEventStreamSetDispatchQueue
  • Loading branch information
claucambra authored Jan 2, 2023
2 parents 7918a34 + 784327f commit 2e0680e
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 2e0680e

Please sign in to comment.