aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-04-22 19:30:49 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-04-23 10:56:41 +0200
commitf45a950fd5b9653903816261b2e1f2acdca1c588 (patch)
tree6cd419a64d451b062f7de123ef1dda5d4bb67ec5 /wee_slack.py
parentb6e9853385e1be9fce27b61180f65c7971c9b44b (diff)
downloadwee-slack-f45a950fd5b9653903816261b2e1f2acdca1c588.tar.gz
Close websocket connection on shutdown
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index ff83a44..348e299 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1021,6 +1021,8 @@ def stop_talking_to_slack():
buffer is handled
"""
EVENTROUTER.shutdown()
+ for team in EVENTROUTER.teams.values():
+ team.ws.shutdown()
return w.WEECHAT_RC_OK
##### New Classes