From 1a770a48ee80b71be8535372b161586323857260 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 31 Aug 2018 17:18:51 +0200 Subject: [PATCH] core(twisted): install reactor before doing anything else --- twisted/plugins/sat_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twisted/plugins/sat_plugin.py b/twisted/plugins/sat_plugin.py index 1a4373e4..afa7957d 100644 --- a/twisted/plugins/sat_plugin.py +++ b/twisted/plugins/sat_plugin.py @@ -17,6 +17,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: # if we are in debug mode, we want to use ipdb instead of pdb @@ -40,8 +42,6 @@ from sat.core.i18n import _ 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 log_config.satConfigure(C.LOG_BACKEND_TWISTED, C, backend_data=options)