Instead of reloading only TRID, reconnect to entire stream when waiting for 2+ seconds.
This commit is contained in:
parent
070b4d7866
commit
4aa4335354
1 changed files with 2 additions and 3 deletions
|
@ -1044,9 +1044,8 @@ namespace Mist {
|
|||
if (myMeta.live && currKeyOpen.count(nxt.tid) && (currKeyOpen[nxt.tid] == (unsigned int)nextPage || nextPage == -1)){
|
||||
if (myMeta && ++emptyCount < 100){
|
||||
//we're waiting for new data. Simply retry.
|
||||
if (emptyCount % 4 == 0){
|
||||
//every second, reload the metaPage.
|
||||
nProxy.metaPages.erase(nxt.tid);
|
||||
if (emptyCount % 8 == 0){
|
||||
reconnect();//reconnect every 2 seconds
|
||||
}
|
||||
buffer.insert(nxt);
|
||||
}else{
|
||||
|
|
Loading…
Add table
Reference in a new issue