mirror of
https://github.com/a-bad-dev/irc2bash.git
synced 2026-06-09 00:51:32 +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!")
|
print("[MAINTHREAD] Could take up to 60 seconds for socket timeout!")
|
||||||
serv.die()
|
serv.die()
|
||||||
raise SystemExit(0)
|
raise SystemExit(0)
|
||||||
|
except EOFError:
|
||||||
|
while True:
|
||||||
|
serv._going_down.wait()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue