mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
cosmetic macos fix on shutdown
This commit is contained in:
parent
15a3ee252e
commit
bc3c9613bc
|
@ -79,7 +79,14 @@ class TcpSrv(object):
|
|||
if self.args.log_conn:
|
||||
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:
|
||||
if self.stopping:
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue