cosmetic macos fix on shutdown

This commit is contained in:
ed 2021-06-20 15:50:37 +02:00
parent 15a3ee252e
commit bc3c9613bc

View file

@ -79,7 +79,14 @@ class TcpSrv(object):
if self.args.log_conn: if self.args.log_conn:
self.log("tcpsrv", "|%sC-acc1" % ("-" * 2,), c="1;30") self.log("tcpsrv", "|%sC-acc1" % ("-" * 2,), c="1;30")
ready, _, _ = select.select(self.srv, [], []) try:
# macos throws bad-fd
ready, _, _ = select.select(self.srv, [], [])
except:
ready = []
if not self.stopping:
raise
for srv in ready: for srv in ready:
if self.stopping: if self.stopping:
break break