From 6b9ffea3c29c2887b7de1e01f74905c0380c283d Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sat, 27 Aug 2011 12:17:33 +0200
Subject: [PATCH] fix resumption when server fails to resumesession (server
 restart). Fixes #6951

---
 src/common/xmpp/smacks.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/common/xmpp/smacks.py b/src/common/xmpp/smacks.py
index c26fb1c056..e59b5d1b85 100644
--- a/src/common/xmpp/smacks.py
+++ b/src/common/xmpp/smacks.py
@@ -114,8 +114,9 @@ class Smacks():
         # Ask for service discovery, etc..
         if stanza.getTag('item-not-found'):
             self.resuming = False
-            self.negociate()
-            self.con._discover_server_at_connection(self.con.connection)
+            # we need to bind a resource
+            self._owner.NonBlockingBind.resuming = False
+            self._owner._on_auth_bind(None)
             return
 
         # Doesn't support resumption
-- 
GitLab