1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

Poll for dashboard on macOS

since can't have two watchdof observers on one directory.
This commit is contained in:
Jonathan Harris 2018-02-28 18:24:36 +00:00
parent 8e00d42eb2
commit a14ce6b89f

@ -55,7 +55,7 @@ class Dashboard(FileSystemEventHandler):
# File system events are unreliable/non-existent over network drives on Linux.
# We can't easily tell whether a path points to a network drive, so assume
# any non-standard logdir might be on a network drive and poll instead.
polling = bool(config.get('journaldir')) and platform != 'win32'
polling = platform != 'win32'
if not polling and not self.observer:
self.observer = Observer()
self.observer.daemon = True