internal/rsync: Log deferred errors with WarnOnError

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber 2026-05-28 14:16:11 -04:00
parent 2de2256436
commit 770e527323
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -145,7 +145,7 @@ func sendSetup(name string, path string, bwlimit string, execPath string, featur
return nil, nil, nil, err
}
defer func() { _ = l.Close() }()
defer logger.WarnOnError(l.Close, "Failed to close listener")
/*
* Here, the path /tmp/foo is ignored. Since we specify localhost,