diff --git a/broker/broker.go b/broker/broker.go index 5d6f7c8..55b53fb 100644 --- a/broker/broker.go +++ b/broker/broker.go @@ -284,6 +284,7 @@ func (b *Broker) StartUnixSocketClientListening(socketPath string, unixSocket bo for { if unixSocket { if FileExist(socketPath) { + err = os.Remove(socketPath) if err != nil { log.Error("Remove Unix socketPath ", zap.Error(err)) }