changeset 1125:56ace2d45783

server (twisted): install reactor before doing anything else
author Goffi <goffi@goffi.org>
date Fri, 31 Aug 2018 18:05:15 +0200
parents 28e3eb3bb217
children 7cd89277a129
files twisted/plugins/libervia_server.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 <http://www.gnu.org/licenses/>.
 
+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