# HG changeset patch # User Goffi # Date 1535731515 -7200 # Node ID 56ace2d45783dad9ba6433456041f9789804147c # Parent 28e3eb3bb217f022e73051b940c3c52f14937df4 server (twisted): install reactor before doing anything else diff -r 28e3eb3bb217 -r 56ace2d45783 twisted/plugins/libervia_server.py --- a/twisted/plugins/libervia_server.py Sat Aug 25 17:59:48 2018 +0200 +++ b/twisted/plugins/libervia_server.py Fri Aug 31 18:05:15 2018 +0200 @@ -19,6 +19,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +from twisted.internet import gireactor +gireactor.install() from twisted.internet import defer if defer.Deferred.debug: @@ -166,9 +168,6 @@ def initialise(options): """Method to initialise global modules""" - from twisted.internet import gireactor - gireactor.install() - # XXX: We need to configure logs before any log method is used, # so here is the best place. from sat.core import log_config