summaryrefslogtreecommitdiff
path: root/src/leap/common/events/examples/server.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-02-23 19:28:05 -0400
committerKali Kaneko <kali@leap.se>2016-02-29 10:32:24 -0400
commit24977b744b42df912a23a2861453e7d4d5202310 (patch)
tree58f0695b6b98b8ce34959f859a712a8a9b73a867 /src/leap/common/events/examples/server.py
parentb940cfc29b88374ce57b101a39bc012bb903f6e8 (diff)
[feature] reactor-based authenticator
We don't really need a thread to make use of the ZAP authenticator. Document bug fix after authenticator thread is gone
Diffstat (limited to 'src/leap/common/events/examples/server.py')
-rw-r--r--src/leap/common/events/examples/server.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/common/events/examples/server.py b/src/leap/common/events/examples/server.py
new file mode 100644
index 0000000..f40f8dc
--- /dev/null
+++ b/src/leap/common/events/examples/server.py
@@ -0,0 +1,4 @@
+from twisted.internet import reactor
+from leap.common.events.server import ensure_server
+reactor.callWhenRunning(ensure_server)
+reactor.run()