SteamWar/FightSystem
Archiviert
13
1

Fix ReplayServer race condition
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-03-11 21:05:58 +01:00
Ursprung 301a51bcd9
Commit bdb708a7a8
3 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -50,6 +50,7 @@ public class FileSource extends PacketSource {
public FileSource(File fightFile) throws IOException { public FileSource(File fightFile) throws IOException {
super(new GZIPInputStream(new FileInputStream(fightFile))); super(new GZIPInputStream(new FileInputStream(fightFile)));
new PacketProcessor(this);
} }
@Override @Override

Datei anzeigen

@ -31,6 +31,7 @@ public class LiveSource extends PacketSource {
protected LiveSource(Socket socket) throws IOException { protected LiveSource(Socket socket) throws IOException {
super(socket.getInputStream()); super(socket.getInputStream());
this.socket = socket; this.socket = socket;
new PacketProcessor(this);
} }
@Override @Override

Datei anzeigen

@ -30,7 +30,6 @@ public abstract class PacketSource extends DataInputStream {
protected PacketSource(InputStream inputStream){ protected PacketSource(InputStream inputStream){
super(inputStream); super(inputStream);
new PacketProcessor(this);
} }
@Override @Override