cmd/faucet: fix websocket double close/reopen

pull/14339/head
Péter Szilágyi 8 years ago
parent 03dffe3efd
commit 80e74fc1e0
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
  1. 2
      cmd/faucet/faucet.html
  2. 2
      cmd/faucet/website.go

@ -136,7 +136,7 @@
}
}
server.onclose = function() { setTimeout(reconnect, 3000); };
server.onerror = function() { setTimeout(reconnect, 3000); };
//server.onerror = function() { setTimeout(reconnect, 3000); };
}
// Establish a websocket connection to the API server
reconnect();

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save