Skip to content

Commit

Permalink
Update mysql.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 authored Apr 17, 2022
1 parent 352ec5b commit 8473bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic_mysql/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def before_server_start(self, app: Sanic, loop: asyncio.AbstractEventLoop)
args, kwargs = self.setting
if self.loop is None:
kwargs["loop"] = loop
if self.app is not None:
if self.__pool is None:
self.__pool = await create_pool(*args, **kwargs)
else:
raise ConnectionError("Already connected to MySQL server.")
Expand Down

0 comments on commit 8473bae

Please sign in to comment.