mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 05:22:27 +03:00
channel.js: address L review
This commit is contained in:
parent
507bcfc9cb
commit
4e9c13834c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user