Use FileServer to avoid plugin incompatiblity problems

This commit is contained in:
shortcutme 2018-06-21 21:57:06 +02:00
parent b6364941a0
commit 8b91abd0dc
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -22,7 +22,7 @@ from Crypt import CryptHash
from util import helper from util import helper
from util import Diff from util import Diff
from Plugin import PluginManager from Plugin import PluginManager
from Connection import ConnectionServer from File import FileServer
from SiteAnnouncer import SiteAnnouncer from SiteAnnouncer import SiteAnnouncer
import SiteManager import SiteManager
@ -57,7 +57,7 @@ class Site(object):
self.connection_server = sys.modules["main"].file_server self.connection_server = sys.modules["main"].file_server
else: else:
self.log.debug("Creating connection server") # remove self.log.debug("Creating connection server") # remove
self.connection_server = ConnectionServer() self.connection_server = FileServer()
self.announcer = SiteAnnouncer(self) # Announce and get peer list from other nodes self.announcer = SiteAnnouncer(self) # Announce and get peer list from other nodes