fix(broker):fix unix sock file not be removed

This commit is contained in:
wei_lilitw
2024-05-23 17:22:29 +08:00
parent 67594b07ef
commit 646f13199d

View File

@@ -284,8 +284,8 @@ func (b *Broker) StartUnixSocketClientListening(socketPath string, unixSocket bo
for {
if unixSocket {
if FileExist(socketPath) {
err = os.Remove(socketPath)
if err != nil {
err = os.Remove(socketPath)
log.Error("Remove Unix socketPath ", zap.Error(err))
}
}