Use the copy we made for this thread, otherwise not thread safe

Fixes #371
This commit is contained in:
Honza Král
2016-03-03 17:47:04 +01:00
parent 1c7b23e214
commit 4de7835d32
+1 -1
View File
@@ -222,7 +222,7 @@ class ConnectionPool(object):
# only call selector if we have a selection
if len(connections) > 1:
return self.selector.select(self.connections)
return self.selector.select(connections)
# only one connection, no need for a selector
return connections[0]