Do not crash if page load fails during Output::prepareNext
This commit is contained in:
		
							parent
							
								
									36a1a88cb0
								
							
						
					
					
						commit
						e6f61f5643
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1428,7 +1428,10 @@ namespace Mist{ | |||
|     if (M.getPageNumberForTime(nxt.tid, nxt.time) != currentPage[nxt.tid]){ | ||||
|       loadPageForKey(nxt.tid, M.getPageNumberForTime(nxt.tid, nxt.time)); | ||||
|       nxt.offset = 0; | ||||
|       nxt.time = getDTSCTime(curPage[nxt.tid].mapped, 0); | ||||
|       //Only read the next time if the page load succeeded and there is a packet to read from
 | ||||
|       if (curPage[nxt.tid].mapped && curPage[nxt.tid].mapped[0] == 'D'){ | ||||
|         nxt.time = getDTSCTime(curPage[nxt.tid].mapped, 0); | ||||
|       } | ||||
|       buffer.erase(buffer.begin()); | ||||
|       buffer.insert(nxt); | ||||
|       return false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma