Only add a waiting clause for resume CAP if the server actually ACKs it

(resume.py)
This commit is contained in:
jesopo 2019-02-10 13:22:53 +00:00
parent c7d21e2d9e
commit 985f4d60a4

View file

@ -16,7 +16,8 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.cap.ack") @utils.hook("received.cap.ack")
def on_cap_ack(self, event): 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") @utils.hook("received.resume")
def on_resume(self, event): def on_resume(self, event):