From 3f80800f4a95f2db6472b926a4fb59e3d9a64e01 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Sun, 10 Dec 2006 23:01:37 +0000 Subject: [PATCH] disco: Don't clean cache for account when browser still have a parent. Fixes #2742. --- src/disco.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/disco.py b/src/disco.py index 7e94ef74e..63c08bef9 100644 --- a/src/disco.py +++ b/src/disco.py @@ -600,7 +600,6 @@ _('Without a connection, you can not browse available services')) self.browser = None self.window.destroy() - self.cache.cleanup() for child in self.children[:]: child.parent = None if chain: @@ -612,6 +611,8 @@ _('Without a connection, you can not browse available services')) if chain and not self.parent.children: self.parent.destroy(chain = chain) self.parent = None + else: + self.cache.cleanup() def travel(self, jid, node): '''Travel to an agent within the current services window.'''