mirror of
https://github.com/fhmq/hmq.git
synced 2026-05-04 07:08:32 +00:00
fix(broker):fix unix sock file not be removed
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user