aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-10 13:22:53 +0000
committerGravatar jesopo2019-02-10 13:22:53 +0000
commit985f4d60a4ff3fc5d66c381ca8ec88985378c1b6 (patch)
tree21e1848eb09d808596c61cd1aeb37f66436de500
parentTypo, 'wrap_scket' -> 'ssl_wrap' (rest_api.py) (diff)
signature
Only add a waiting clause for `resume` CAP if the server actually ACKs it
(resume.py)
-rw-r--r--modules/resume.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/resume.py b/modules/resume.py
index 02b71892..c3999c3d 100644
--- a/modules/resume.py
+++ b/modules/resume.py
@@ -16,7 +16,8 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.cap.ack")
def on_cap_ack(self, event):
- event["server"].wait_for_capability("resume")
+ if CAP in event["capabilities"]:
+ event["server"].wait_for_capability("resume")
@utils.hook("received.resume")
def on_resume(self, event):