Fix quick mode sending async-mode packets when paused
This wasn't much of on issue because no tick events are fired normally while paused. When seeking we do however manually run a tick for better result, and this manual tick would cause this async sending code to run and seek wildly into the future.
This commit is contained in:
@@ -269,7 +269,7 @@ public class QuickReplaySender extends ChannelHandlerAdapter implements ReplaySe
|
|||||||
//$$ public void onTick(TickEvent.ClientTickEvent event) {
|
//$$ public void onTick(TickEvent.ClientTickEvent event) {
|
||||||
//$$ if (event.phase != TickEvent.Phase.START) return;
|
//$$ if (event.phase != TickEvent.Phase.START) return;
|
||||||
//#endif
|
//#endif
|
||||||
if (!asyncMode) return;
|
if (!asyncMode || paused()) return;
|
||||||
|
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
long realTimePassed = now - lastAsyncUpdateTime;
|
long realTimePassed = now - lastAsyncUpdateTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user