From f6d55c4603f9a56a322aa26aabde643a8a509e6a Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 19 Nov 2018 23:46:50 +0100 Subject: [PATCH] core: fixed reactor crash by installing reactor only in makeService --- 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 afa7957d..979708a1 100644 --- a/twisted/plugins/sat_plugin.py +++ b/twisted/plugins/sat_plugin.py @@ -17,8 +17,6 @@ # 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 @@ -59,6 +57,8 @@ class SatMaker(object): options = Options def makeService(self, options): + from twisted.internet import gireactor + gireactor.install() # XXX: SAT must be imported after log configuration, because it write stuff to logs initialise(options.parent) from sat.core.sat_main import SAT