macos smb: avoid hang on shutdown

This commit is contained in:
ed 2022-11-17 21:17:54 +00:00
parent 4ad4657774
commit 8709d4dba0
3 changed files with 6 additions and 2 deletions

View file

@ -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)