MessageReceiver: Process cached before dismissing loading screen

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-08-07 12:41:24 -07:00
parent fa00f08c95
commit e0c1f0d27a
2 changed files with 8 additions and 0 deletions

View file

@ -38283,6 +38283,10 @@ MessageReceiver.prototype.extend({
});
this.pending = this.queueAllCached();
// Ensures that an immediate 'empty' event from the websocket will fire only after
// all cached envelopes are processed.
this.incoming = [this.pending];
},
close: function() {
this.socket.close(3000, 'called close');

View file

@ -34,6 +34,10 @@ MessageReceiver.prototype.extend({
});
this.pending = this.queueAllCached();
// Ensures that an immediate 'empty' event from the websocket will fire only after
// all cached envelopes are processed.
this.incoming = [this.pending];
},
close: function() {
this.socket.close(3000, 'called close');