Merge pull request #168 from BeaudanBrown/disconnected-fix

Fixing the disconnected buffer coming up too much
pull/182/head
sachaaaaa 6 years ago committed by GitHub
commit 7c4eb826d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -233,7 +233,8 @@
break;
case WebSocket.OPEN:
clearInterval(this.interval);
// if we've connected, we can wait for real empty event
// Default to connected, but lokinet is slow so we pretend empty event
this.onEmpty();
this.interval = null;
break;
case WebSocket.CLOSING:

@ -64,7 +64,7 @@
if (typeof handleRequest !== 'function') {
handleRequest = request => request.respond(404, 'Not found');
}
let connected = false;
let connected = true;
const jobQueue = new window.JobQueue();
const processMessages = async messages => {

Loading…
Cancel
Save