forked from cerc-io/plugeth
cmd/faucet: fix websocket double close/reopen
This commit is contained in:
parent
03dffe3efd
commit
80e74fc1e0
@ -136,7 +136,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
server.onclose = function() { setTimeout(reconnect, 3000); };
|
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
|
// Establish a websocket connection to the API server
|
||||||
reconnect();
|
reconnect();
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user