Only add a waiting clause for resume
CAP if the server actually ACKs it
(resume.py)
This commit is contained in:
parent
c7d21e2d9e
commit
985f4d60a4
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue