Skip to content

Commit

Permalink
Merge pull request #204 from xinkonglili/weilili
Browse files Browse the repository at this point in the history
fix(broker):Added file removal for unix sock communication #203
  • Loading branch information
chowyu12 authored May 24, 2024
2 parents c460807 + 646f131 commit a92de4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions broker/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit a92de4c

Please sign in to comment.