changeset 359:38d763febed6

android (service): fixed backend launch
author Goffi <goffi@goffi.org>
date Sat, 18 Jan 2020 23:12:52 +0100
parents 8efed1d47d9f
children a77386b73e55
files service/main.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/service/main.py	Sat Jan 18 23:12:52 2020 +0100
+++ b/service/main.py	Sat Jan 18 23:12:52 2020 +0100
@@ -36,6 +36,10 @@
     C.PLUGIN_EXT = "pyc"
 from sat.core import sat_main
 from twisted.internet import reactor
+from twisted.application import app, service
 
 sat = sat_main.SAT()
+application = service.Application("SàT backend")
+sat.setServiceParent(application)
+app.startApplication(application, None)
 reactor.run()