mirror of
https://github.com/maubot/maubot
synced 2025-09-02 00:00:39 +00:00
Stop passing loop to asyncio.gather
This commit is contained in:
parent
09108f6a73
commit
03a1fdaaf5
2 changed files with 4 additions and 6 deletions
|
@ -137,11 +137,10 @@ class Client:
|
|||
await self.start_plugins()
|
||||
|
||||
async def start_plugins(self) -> None:
|
||||
await asyncio.gather(*[plugin.start() for plugin in self.references], loop=self.loop)
|
||||
await asyncio.gather(*[plugin.start() for plugin in self.references])
|
||||
|
||||
async def stop_plugins(self) -> None:
|
||||
await asyncio.gather(*[plugin.stop() for plugin in self.references if plugin.started],
|
||||
loop=self.loop)
|
||||
await asyncio.gather(*[plugin.stop() for plugin in self.references if plugin.started])
|
||||
|
||||
def start_sync(self) -> None:
|
||||
if self.sync:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue