diff options
author | Anton Leherbauer | 2011-11-07 12:01:32 +0000 |
---|---|---|
committer | Anton Leherbauer | 2011-11-07 12:01:32 +0000 |
commit | 0d99bc88e87c39fbb11aa274923741ec359c197d (patch) | |
tree | aa760a6bf20a4132bbcb41f39e5f880bb0b6ec8e /python/src/tcf | |
parent | afa225657e329e2b99cac93ac0ca80bdd0a944b5 (diff) | |
download | org.eclipse.tcf-0d99bc88e87c39fbb11aa274923741ec359c197d.tar.gz org.eclipse.tcf-0d99bc88e87c39fbb11aa274923741ec359c197d.tar.xz org.eclipse.tcf-0d99bc88e87c39fbb11aa274923741ec359c197d.zip |
TCF Python: Fixed wrong python API usage
Diffstat (limited to 'python/src/tcf')
-rw-r--r-- | python/src/tcf/services/local/LocatorService.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/src/tcf/services/local/LocatorService.py b/python/src/tcf/services/local/LocatorService.py index 80122c528..5d8f43bc2 100644 --- a/python/src/tcf/services/local/LocatorService.py +++ b/python/src/tcf/services/local/LocatorService.py @@ -185,13 +185,13 @@ class LocatorService(locator.LocatorService): if not LocatorService.addr_request:
service._addr_cache_lock.wait(locator.DATA_RETENTION_PERIOD)
msec = int(time.time() * 1000)
- for a in LocatorService.addr_cache.values():
+ for host, a in LocatorService.addr_cache.items():
if a.time_stamp + locator.DATA_RETENTION_PERIOD * 10 < msec:
if a.used:
if itemSet is None: itemSet = set()
itemSet.add(a)
else:
- LocatorService.addr_cache.remove(a)
+ del LocatorService.addr_cache[host]
LocatorService.addr_request = False
if itemSet is not None:
for a in itemSet:
|