mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-13 17:30:04 +00:00
archive full game on crash (#251)
This commit is contained in:
@@ -193,7 +193,7 @@ export class ClientGameRunner {
|
||||
this.lobby.gameID,
|
||||
this.lobby.clientID,
|
||||
);
|
||||
this.stop();
|
||||
this.stop(true);
|
||||
return;
|
||||
}
|
||||
gu.updates[GameUpdateType.Hash].forEach((hu: HashUpdate) => {
|
||||
@@ -265,10 +265,10 @@ export class ClientGameRunner {
|
||||
this.transport.connect(onconnect, onmessage);
|
||||
}
|
||||
|
||||
public stop() {
|
||||
public stop(saveFullGame: boolean = false) {
|
||||
this.worker.cleanup();
|
||||
this.isActive = false;
|
||||
this.transport.leaveGame();
|
||||
this.transport.leaveGame(saveFullGame);
|
||||
}
|
||||
|
||||
private inputEvent(event: MouseUpEvent) {
|
||||
|
||||
Reference in New Issue
Block a user