mirror of
https://github.com/fhmq/hmq.git
synced 2026-08-30 14:24:53 +00:00
fix(broker):fix unix sock file not be removed
This commit is contained in:
@@ -285,6 +285,7 @@ func (b *Broker) StartUnixSocketClientListening(socketPath string, unixSocket bo
|
|||||||
if unixSocket {
|
if unixSocket {
|
||||||
if FileExist(socketPath) {
|
if FileExist(socketPath) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
err = os.Remove(socketPath)
|
||||||
log.Error("Remove Unix socketPath ", zap.Error(err))
|
log.Error("Remove Unix socketPath ", zap.Error(err))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user