cmd/faucet: fix websocket double close/reopen

This commit is contained in:
Péter Szilágyi 2017-04-16 20:39:42 +03:00
parent 03dffe3efd
commit 80e74fc1e0
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
2 changed files with 2 additions and 2 deletions

View File

@ -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