Skip to content

Commit

Permalink
Merge pull request #142 from TheCacophonyProject/fix-not-found
Browse files Browse the repository at this point in the history
ignore not found error
  • Loading branch information
gferraro authored Jul 30, 2024
2 parents 5293e52 + 188bbd9 commit 11fd3ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/managementd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ func main() {

go func() {
for {
// Set up listener for frames sent by leptond.
err := os.Remove(frameSocket)
if err != nil {
if err != nil && !os.IsNotExist(err) {
log.Printf("Couldn't remove %v %v\n", frameSocket, err)
time.Sleep(1000)
continue
}

listener, err := net.Listen("unix", frameSocket)
if err != nil {
log.Println("Couldn't make socket", err)
Expand Down

0 comments on commit 11fd3ed

Please sign in to comment.