diff --git a/src/client/Main.ts b/src/client/Main.ts index 261d7ea49..2619e54cd 100644 --- a/src/client/Main.ts +++ b/src/client/Main.ts @@ -69,6 +69,7 @@ class Client { const clientIP = await this.ip console.log(`got ip ${clientIP}`) if (this.game != null) { + console.log('joining lobby, stopping existing game') this.game.stop() } this.game = await createClientGame( @@ -96,6 +97,7 @@ class Client { if (this.game == null) { return } + console.log('leaving lobby, cancelling game') this.game.stop() this.game = null } diff --git a/src/client/index.html b/src/client/index.html index ed8f81719..05450b1aa 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -28,7 +28,7 @@