Skip to content

Commit

Permalink
fix: close ws connection
Browse files Browse the repository at this point in the history
  • Loading branch information
behrangalavi committed Oct 10, 2023
1 parent f89dbfc commit a64d1b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/routes-websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func connectWs(c *gin.Context) {
if err != nil {
ws.WriteMessage(websocket.TextMessage, []byte(err.Error()))
log.Printf("Unable to read from pty/cmd: %s", err.Error())
continue
return
}
ws.WriteMessage(websocket.BinaryMessage, buf[:read])
}
Expand Down

0 comments on commit a64d1b5

Please sign in to comment.