Ditch gc.collect()
This commit is contained in:
parent
7e5ba09aca
commit
c496bd604b
|
@ -179,7 +179,6 @@ class ServicesCache:
|
||||||
del self._items[key]
|
del self._items[key]
|
||||||
if self._info or self._items:
|
if self._info or self._items:
|
||||||
return True
|
return True
|
||||||
gc.collect()
|
|
||||||
self._cleancid = None
|
self._cleancid = None
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -508,10 +507,6 @@ _('Without a connection, you can not browse available services')).get_response()
|
||||||
self.parent.destroy(chain = chain)
|
self.parent.destroy(chain = chain)
|
||||||
self.parent = None
|
self.parent = None
|
||||||
|
|
||||||
# This is for the icon cache. We do this here because we want to keep
|
|
||||||
# it cross-browser, but not when we close the window.
|
|
||||||
gc.collect()
|
|
||||||
|
|
||||||
def travel(self, jid, node):
|
def travel(self, jid, node):
|
||||||
'''Travel to an agent within the current services window.'''
|
'''Travel to an agent within the current services window.'''
|
||||||
if self.browser:
|
if self.browser:
|
||||||
|
|
Loading…
Reference in New Issue