channel.js: address L review

This commit is contained in:
Liam Fitzgerald 2020-12-02 12:09:26 +10:00
parent 507bcfc9cb
commit 4e9c13834c
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -63,8 +63,6 @@ class Channel {
}
resetDebounceTimer() {
console.log('cancelled, debouncing in 500');
console.log(this.outstandingJSON);
if(this.debounceTimer) {
clearTimeout(this.debounceTimer);
this.debounceTimer = null;
@ -259,9 +257,7 @@ class Channel {
} else if (obj.response == "diff") {
// ensure we ack before channel clogs
if((this.lastEventId - this.lastAcknowledgedEventId) > 30) {
clearTimeout(this.debounceTimer);
this.debounceTimer = null;
this.sendJSONToChannel();
this.clearQueue();
}
let funcs = subFuncs;