Make unload_plugin async for reasons

This commit is contained in:
Lonami 2019-04-30 20:42:32 +02:00
parent febe3c4bac
commit 93cbb44459
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class Uniborg(TelegramClient):
self._plugins[shortname] = mod
self._logger.info(f"Successfully loaded plugin {shortname}")
def remove_plugin(self, shortname):
async def remove_plugin(self, shortname):
name = self._plugins[shortname].__name__
for i in reversed(range(len(self._event_builders))):