Permalink
Browse files

Example 28: Hook up the on_stop handler to call the disconnect function.

It couldn't really be any simpler.
  • Loading branch information...
1 parent 22017b9 commit 171d003753913d50a5512f58ebbab40df67eb87b Dusty Phillips committed Jul 5, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 orkiv/__main__.py
View
@@ -81,5 +81,8 @@ def disconnect_xmpp(self):
self.xmpp.abort()
self.xmpp = None
+ def on_stop(self):
+ self.disconnect_xmpp()
+
Orkiv().run()

0 comments on commit 171d003

Please sign in to comment.