mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
macos smb: avoid hang on shutdown
This commit is contained in:
parent
4ad4657774
commit
8709d4dba0
|
@ -286,7 +286,10 @@ class MCast(object):
|
|||
# just give it something
|
||||
ret = list(self.srv.values())[0]
|
||||
|
||||
if not ret:
|
||||
if ret:
|
||||
t = "new client on {} ({}): {}"
|
||||
self.log(t.format(ret.name, ret.net, cip), 6)
|
||||
else:
|
||||
t = "could not map client {} to known subnet; maybe forwarded from another network?"
|
||||
self.log(t.format(cip), 3)
|
||||
|
||||
|
|
|
@ -515,6 +515,7 @@ class SvcHub(object):
|
|||
|
||||
if hasattr(self, "smbd"):
|
||||
slp = max(slp, time.time() + 0.5)
|
||||
Daemon(self.kill9, a=(1,))
|
||||
Daemon(self.smbd.stop)
|
||||
|
||||
while time.time() < slp:
|
||||
|
|
|
@ -960,7 +960,7 @@ def alltrace() -> str:
|
|||
else:
|
||||
rret += ret
|
||||
|
||||
return "\n".join(rret + bret)
|
||||
return "\n".join(rret + bret) + "\n"
|
||||
|
||||
|
||||
def start_stackmon(arg_str: str, nid: int) -> None:
|
||||
|
|
Loading…
Reference in a new issue