MessageReceiver: Process cached before dismissing loading screen
FREEBIE
This commit is contained in:
		
					parent
					
						
							
								fa00f08c95
							
						
					
				
			
			
				commit
				
					
						e0c1f0d27a
					
				
			
		
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -38283,6 +38283,10 @@ MessageReceiver.prototype.extend({
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.pending = this.queueAllCached();
 | 
					        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() {
 | 
					    close: function() {
 | 
				
			||||||
        this.socket.close(3000, 'called close');
 | 
					        this.socket.close(3000, 'called close');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -34,6 +34,10 @@ MessageReceiver.prototype.extend({
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.pending = this.queueAllCached();
 | 
					        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() {
 | 
					    close: function() {
 | 
				
			||||||
        this.socket.close(3000, 'called close');
 | 
					        this.socket.close(3000, 'called close');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue