Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
WHAT
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Oct 3, 2020
1 parent a5f484a commit f5ab704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdpys/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def decorator(coro):
raise Exception("Function is not a coroutine function!")
if name is None:
name = coro.__name__.lower()
loop = asyncio.new_event_loop()
loop.create_task(await self.create_command(name, coro, permission))
loop = asyncio.get_event_loop()
loop.create_task(self.create_command(name, coro, permission))

return decorator

Expand Down

0 comments on commit f5ab704

Please sign in to comment.