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

Commit

Permalink
Merge pull request #213 from yawwwwwn/master
Browse files Browse the repository at this point in the history
Fix bug
  • Loading branch information
yawwwwwn authored Aug 20, 2019
2 parents 99f34da + 39a651c commit 72ade58
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@
task4 = connect()
task5 = PKLottery()

console_thread = threading.Thread(target=biliconsole.controler)

console_thread.start()

tasks1 = [
login().login_new()
]
loop.run_until_complete(asyncio.wait(tasks1))

console_thread = threading.Thread(target=biliconsole.controler)
console_thread.start()

tasks = [
task.run(),
task1.run(),
Expand All @@ -48,7 +47,7 @@
task5.run()
]

loop.run_until_complete(asyncio.wait(tasks))
console_thread.join()

loop.run_until_complete(asyncio.wait(tasks, return_when=asyncio.FIRST_EXCEPTION))
loop.close()

console_thread.join()

0 comments on commit 72ade58

Please sign in to comment.