diff options
Diffstat (limited to 'omegle.py')
-rw-r--r-- | omegle.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -189,7 +189,8 @@ if __name__ == "__main__": logging.basicConfig(level=logging.INFO) print "Lets chat. Type \"quit\" to disconnect" chat = OmegleChat() - def exit(self): + def exit(): + OmegleChat.on_disconnect(chat) sys.exit(0) chat.on_disconnect = exit chat.start() |