We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc73d8a + 7275733 commit 3a56229Copy full SHA for 3a56229
tormysql/pool.py
@@ -138,7 +138,7 @@ def release_connection(self, connection):
138
connection.used_time = time.time()
139
if connection.open:
140
wait_future = self._wait_connections.popleft()
141
- wait_future.set_result(connection)
+ IOLoop.current().add_callback(wait_future.set_result, connection)
142
else:
143
try:
144
del self._used_connections[id(connection)]
@@ -217,4 +217,4 @@ def check_idle_connections(self):
217
if not self._closed and self._connections or self._used_connections:
218
IOLoop.current().add_timeout(next_check_time, self.check_idle_connections)
219
220
- self._check_idle_callback = False
+ self._check_idle_callback = False
0 commit comments