New watchdog module based file change watching

This commit is contained in:
shortcutme 2019-03-16 02:42:43 +01:00
parent 75d8338f2d
commit e92f3ea100
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
5 changed files with 41 additions and 42 deletions

View file

@ -345,7 +345,7 @@ class FileServer(ConnectionServer):
if config.debug:
# Auto reload FileRequest on change
from Debug import DebugReloader
DebugReloader(self.reload)
DebugReloader.watcher.addCallback(self.reload)
if check_sites: # Open port, Update sites, Check files integrity
gevent.spawn(self.checkSites)