Make thread requirements of ReplayHandler#setup explicit and fix illegal usage

This commit is contained in:
Jonas Herzig
2019-07-08 09:53:47 +02:00
parent 8261767657
commit c4d2be9e89
2 changed files with 16 additions and 17 deletions

View File

@@ -845,11 +845,11 @@ public class FullReplaySender extends ChannelDuplexHandler implements ReplaySend
startFromBeginning = false;
nextPacket = null;
lastPacketSent = System.currentTimeMillis();
replayHandler.restartedReplay();
if (replayIn != null) {
replayIn.close();
replayIn = null;
}
ReplayMod.instance.runSync(replayHandler::restartedReplay);
}
}
} catch (Exception e) {