Use websocket queue for queueAllCached()
This commit is contained in:
parent
05306c2d3d
commit
79a90802c0
1 changed files with 2 additions and 2 deletions
|
@ -284,7 +284,7 @@ class MessageReceiverInner extends EventTarget {
|
||||||
}
|
}
|
||||||
|
|
||||||
// We always process our cache before processing a new websocket message
|
// We always process our cache before processing a new websocket message
|
||||||
this.encryptedQueue.add(async () => this.queueAllCached());
|
this.incomingQueue.add(async () => this.queueAllCached());
|
||||||
|
|
||||||
this.count = 0;
|
this.count = 0;
|
||||||
if (this.hasConnected) {
|
if (this.hasConnected) {
|
||||||
|
@ -735,7 +735,7 @@ class MessageReceiverInner extends EventTarget {
|
||||||
if (this.isEmptied) {
|
if (this.isEmptied) {
|
||||||
this.clearRetryTimeout();
|
this.clearRetryTimeout();
|
||||||
this.retryCachedTimeout = setTimeout(() => {
|
this.retryCachedTimeout = setTimeout(() => {
|
||||||
this.encryptedQueue.add(async () => this.queueAllCached());
|
this.incomingQueue.add(async () => this.queueAllCached());
|
||||||
}, RETRY_TIMEOUT);
|
}, RETRY_TIMEOUT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue