Merge pull request #5272 from nextcloud/bugfix/fseventstreamscehdulerunloop-deprecation-fix

Replace now deprecated FSEventStreamScheduleWithRunLoop with FSEventStreamSetDispatchQueue
This commit is contained in:
Claudio Cambra 2023-01-02 19:34:39 +01:00 committed by GitHub
commit 2e0680e924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ void FolderWatcherPrivate::startWatching()
CFRelease(pathsToWatch);
CFRelease(folderCF);
FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
FSEventStreamSetDispatchQueue(_stream, dispatch_get_main_queue());
FSEventStreamStart(_stream);
}