Skip to content

Commit 636946f

Browse files
authored
fix mysql (Got an error reading communication packets)
this commit fixes #166
1 parent 83aa96e commit 636946f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiomysql/pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def wait_closed(self):
121121

122122
while self._free:
123123
conn = self._free.popleft()
124-
conn.close()
124+
await conn.ensure_closed()
125125

126126
async with self._cond:
127127
while self.size > self.freesize:

0 commit comments

Comments
 (0)