Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2018-10-03 15:18:46 +0300
committerPhilipp Hörist <philipp@hoerist.com>2018-10-03 15:18:46 +0300
commit46a40cf69f75a2a2dbe1c9dcd5322c556af3101d (patch)
tree34c2cf7ac5c366f51181f8b9b059ac0fbb386e79
parent2428e3976b2629c58905e84132e21336a90d505c (diff)
StreamManagement: Reset IN counter after enabled
-rw-r--r--nbxmpp/smacks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nbxmpp/smacks.py b/nbxmpp/smacks.py
index a3dfdaf..1f3de69 100644
--- a/nbxmpp/smacks.py
+++ b/nbxmpp/smacks.py
@@ -50,6 +50,8 @@ class Smacks(object):
def _neg_response(self, disp, stanza):
r = stanza.getAttr('resume')
+ # When we receive enabled from the server, reset the IN count
+ self.in_h = 0
log.info("Session resumption: %s" % r)
if r == 'true' or r == 'True' or r == '1':
self.resumption = True