Prevent 100% CPU usage when no packet is available and we're inserting ghost packets repeatedly.

This commit is contained in:
Thulinma 2023-11-06 14:14:27 +01:00
parent 320ed53212
commit a4828c087d

View file

@ -2111,6 +2111,7 @@ namespace Mist{
if (nxt.ghostPacket){
nxt.time = M.getNowms(nxt.tid);
buffer.replaceFirst(nxt);
playbackSleep(5);
return false;
}
if (nxt.offset >= curPage[nxt.tid].len){