mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update tgclient.py
This commit is contained in:
@@ -111,11 +111,11 @@ async def main(loop):
|
||||
await client.start()
|
||||
|
||||
# create new task
|
||||
print('creating plugins_run task.')
|
||||
writeLog('creating plugins_run task.')
|
||||
task = loop.create_task(plugins_run())
|
||||
await task
|
||||
|
||||
print('It works.')
|
||||
writeLog('It works.')
|
||||
await client.run_until_disconnected()
|
||||
task.cancel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user