Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 252985f

Browse files
committed
break out if connection is dead
1 parent 46f6172 commit 252985f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/web_relay_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func connectToServer(relay string, sender string) (*websocket.Conn, error) {
110110
_, p, err := c.ReadMessage()
111111
if err != nil {
112112
fmt.Println(err)
113-
//return nil, err
113+
break
114114
}
115115
// print out that message for clarity
116116
fmt.Printf("Received incoming message from relay: %s\n", string(p))

0 commit comments

Comments
 (0)