Skip to content

Commit

Permalink
Example 28: Hook up the on_stop handler to call the disconnect function.
Browse files Browse the repository at this point in the history
It couldn't really be any simpler.
  • Loading branch information
Dusty Phillips committed Jul 5, 2013
1 parent 22017b9 commit 171d003
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orkiv/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.