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

This commit is contained in:
wei_lilitw
2024-05-23 17:21:21 +08:00
parent 9063c6069c
commit 67594b07ef
+1
View File
@@ -285,6 +285,7 @@ func (b *Broker) StartUnixSocketClientListening(socketPath string, unixSocket bo
if unixSocket {
if FileExist(socketPath) {
if err != nil {
err = os.Remove(socketPath)
log.Error("Remove Unix socketPath ", zap.Error(err))
}
}