From 985f4d60a4ff3fc5d66c381ca8ec88985378c1b6 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 10 Feb 2019 13:22:53 +0000 Subject: Only add a waiting clause for `resume` CAP if the server actually ACKs it (resume.py) --- modules/resume.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') 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): -- cgit v1.3.1-10-gc9f91