Start ConnectinServer before loading site list
This commit is contained in:
parent
597c5063f3
commit
8b09a02028
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue