diff options
author | Philipp Hörist <philipp@hoerist.com> | 2018-10-03 15:18:46 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2018-10-03 15:18:46 +0300 |
commit | 46a40cf69f75a2a2dbe1c9dcd5322c556af3101d (patch) | |
tree | 34c2cf7ac5c366f51181f8b9b059ac0fbb386e79 | |
parent | 2428e3976b2629c58905e84132e21336a90d505c (diff) |
StreamManagement: Reset IN counter after enabled
-rw-r--r-- | nbxmpp/smacks.py | 2 |
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 |