MessageReceiver: Process cached before dismissing loading screen

FREEBIE
pull/749/head
Scott Nonnenberg 8 years ago
parent fa00f08c95
commit e0c1f0d27a

@ -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');

@ -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');

Loading…
Cancel
Save