Author: dmeyer
Date: Fri Apr 21 10:10:20 2006
New Revision: 1429
Modified:
trunk/beacon/src/client.py
Log:
clean up queries while searching
Modified: trunk/beacon/src/client.py
==============================================================================
--- trunk/beacon/src/client.py (original)
+++ trunk/beacon/src/client.py Fri Apr 21 10:10:20 2006
@@ -169,8 +169,11 @@
dependencies. So this function is needed to find the correct Query
for a request.
"""
- for query in self._queries:
- if query and query.id == id:
+ for query in self._queries[:]:
+ if not query:
+ self._queries.remove(query)
+ continue
+ if query.id == id:
if hasattr(query, '_beacon_%s' % msg):
getattr(query, '_beacon_%s' % msg)(*args, **kwargs)
return
@@ -178,11 +181,6 @@
log.error('Error: unknown message from server: %s' % msg)
return
- # not found, possibly already deleted, check for dead weakrefs
- for query in self._queries[:]:
- if not query:
- self._queries.remove(query)
-
def update(self, item=None):
"""
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog