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.live && currKeyOpen.count(nxt.tid) && (currKeyOpen[nxt.tid] == (unsigned int)nextPage || nextPage == -1)){
|
||||||
if (myMeta && ++emptyCount < 100){
|
if (myMeta && ++emptyCount < 100){
|
||||||
//we're waiting for new data. Simply retry.
|
//we're waiting for new data. Simply retry.
|
||||||
if (emptyCount % 4 == 0){
|
if (emptyCount % 8 == 0){
|
||||||
//every second, reload the metaPage.
|
reconnect();//reconnect every 2 seconds
|
||||||
nProxy.metaPages.erase(nxt.tid);
|
|
||||||
}
|
}
|
||||||
buffer.insert(nxt);
|
buffer.insert(nxt);
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Add table
Reference in a new issue