Skip to content

Commit 80e74fc

Browse files
committed
cmd/faucet: fix websocket double close/reopen
1 parent 03dffe3 commit 80e74fc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎cmd/faucet/faucet.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ <h3>How does this work?</h3>
136136
}
137137
}
138138
server.onclose = function() { setTimeout(reconnect, 3000); };
139-
server.onerror = function() { setTimeout(reconnect, 3000); };
139+
//server.onerror = function() { setTimeout(reconnect, 3000); };
140140
}
141141
// Establish a websocket connection to the API server
142142
reconnect();

‎cmd/faucet/website.go‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)