Mercurial > libervia-backend
changeset 2670:ef93fcbaa749
core(twisted): install reactor before doing anything else
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 31 Aug 2018 17:18:51 +0200 (2018-08-31) |
parents | bdb8276fd2da |
children | 0fa217fafabf |
files | twisted/plugins/sat_plugin.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/twisted/plugins/sat_plugin.py Fri Aug 31 16:03:12 2018 +0200 +++ b/twisted/plugins/sat_plugin.py Fri Aug 31 17:18:51 2018 +0200 @@ -17,6 +17,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +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 @@ 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)