Start ConnectinServer before loading site list

This commit is contained in:
shortcutme 2018-04-29 13:04:38 +02:00
parent 597c5063f3
commit 8b09a02028
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -373,13 +373,13 @@ class FileServer(ConnectionServer):
# Bind and start serving sites
def start(self, check_sites=True):
ConnectionServer.start(self)
self.sites = self.site_manager.list()
if config.debug:
# Auto reload FileRequest on change
from Debug import DebugReloader
DebugReloader(self.reload)
ConnectionServer.start(self)
if check_sites: # Open port, Update sites, Check files integrity
gevent.spawn(self.checkSites)