Prevent 100% CPU usage when no packet is available and we're inserting ghost packets repeatedly.
This commit is contained in:
parent
320ed53212
commit
a4828c087d
1 changed files with 1 additions and 0 deletions
|
@ -2111,6 +2111,7 @@ namespace Mist{
|
||||||
if (nxt.ghostPacket){
|
if (nxt.ghostPacket){
|
||||||
nxt.time = M.getNowms(nxt.tid);
|
nxt.time = M.getNowms(nxt.tid);
|
||||||
buffer.replaceFirst(nxt);
|
buffer.replaceFirst(nxt);
|
||||||
|
playbackSleep(5);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (nxt.offset >= curPage[nxt.tid].len){
|
if (nxt.offset >= curPage[nxt.tid].len){
|
||||||
|
|
Loading…
Add table
Reference in a new issue