Skip to content

Commit faac69c

Browse files
committed
In case of error, return from the Go routine.
Closes #156.
1 parent a75c200 commit faac69c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/backend/basicstation/backend.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,7 @@ func (b *Backend) websocketWrap(handler func(*http.Request, *websocket.Conn), w
756756
if err := conn.WriteMessage(websocket.PingMessage, nil); err != nil {
757757
log.WithError(err).Error("backend/basicstation: send ping message error")
758758
conn.Close()
759+
return
759760
}
760761
}
761762
}

0 commit comments

Comments
 (0)