From f61a42815a37be62aa7dcf9cf5acffd47fb33e65 Mon Sep 17 00:00:00 2001 From: Aleteoryx Date: Thu, 9 Apr 2026 11:36:04 -0400 Subject: [PATCH] actually update the timeout lmao --- nanobnc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nanobnc.py b/nanobnc.py index fd846d5caced530b1ef3bdc2463b5e0b86b89c61..baa418d0d3896158a580a601d73842103618e54d 100755 --- a/nanobnc.py +++ b/nanobnc.py @@ -94,11 +94,12 @@ def toserver(): def toclient(): fp = sok.makefile('r', encoding='ascii', errors='ignore') while (s := fp.readline()) != '': + alarm(timeout) stdout.write(s) stdout.flush() shutdown() exit(0) -t = threading.Thread(target=toclient) +t = threading.Thread(target=toserver) t.start() -toserver() +toclient()