# HG changeset patch # User Goffi # Date 1542667610 -3600 # Node ID c5543fba97e89eb268446747d326435c6fb442a6 # Parent a8ec00731ce74176358c78baa5ceb283b8e3a01c core: fixed reactor crash by installing reactor only in makeService diff -r a8ec00731ce7 -r c5543fba97e8 twisted/plugins/sat_plugin.py --- a/twisted/plugins/sat_plugin.py Mon Nov 19 21:08:25 2018 +0100 +++ b/twisted/plugins/sat_plugin.py Mon Nov 19 23:46:50 2018 +0100 @@ -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 @@ 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