mirror of https://github.com/nextcloud/desktop
Merge pull request #5272 from nextcloud/bugfix/fseventstreamscehdulerunloop-deprecation-fix
Replace now deprecated FSEventStreamScheduleWithRunLoop with FSEventStreamSetDispatchQueue
This commit is contained in:
commit
2e0680e924
|
@ -101,7 +101,7 @@ void FolderWatcherPrivate::startWatching()
|
|||
|
||||
CFRelease(pathsToWatch);
|
||||
CFRelease(folderCF);
|
||||
FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
FSEventStreamSetDispatchQueue(_stream, dispatch_get_main_queue());
|
||||
FSEventStreamStart(_stream);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue