mirror of
https://github.com/a-bad-dev/irc2bash.git
synced 2026-06-09 08:56:31 +00:00
Allow for running this bot without a valid stdin
Specifically, if rawcmd's input fails, it will just wait for the going down signal.
This commit is contained in:
parent
a5134ade39
commit
0febb315c3
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
|
@ -356,3 +356,6 @@ if __name__ == "__main__":
|
|||
print("[MAINTHREAD] Could take up to 60 seconds for socket timeout!")
|
||||
serv.die()
|
||||
raise SystemExit(0)
|
||||
except EOFError:
|
||||
while True:
|
||||
serv._going_down.wait()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue