From 669a8fae15bbb91710c9fb3d7f97cce0b56d975b Mon Sep 17 00:00:00 2001
From: duck <duck>
Date: Wed, 27 Oct 2004 04:07:00 +0000
Subject: [PATCH] iterate through the dict values (thanks dinoman)

---
 apps/sam/python/src/i2p/select.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/sam/python/src/i2p/select.py b/apps/sam/python/src/i2p/select.py
index 86c932c578..0e0f34e477 100644
--- a/apps/sam/python/src/i2p/select.py
+++ b/apps/sam/python/src/i2p/select.py
@@ -40,7 +40,7 @@ class Poll:
     del self.fds[self._hash(fd)]
   def poll(self, timeout=None):
     readlist, writelist, errlist = [], [], []
-    for F, mask in self.fds:
+    for F, mask in self.fds.values():
       if mask & POLLIN:  readlist  += [F]
       if mask & POLLOUT: writelist += [F]
       if mask & POLLERR: errlist   += [F]
-- 
GitLab