fix: bozo issu

This commit is contained in:
starnakin 2024-05-15 15:57:02 +02:00
parent d1acb443bd
commit bc7d87704b
2 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,6 @@ export default class PongOnlineView extends AbstractAuthenticatedView
destroyGameboard() destroyGameboard()
{ {
if (!this.canva)
return
this.app.removeChild(this.canva); this.app.removeChild(this.canva);
} }

View File

@ -86,6 +86,8 @@ class PongGame(AGame):
self.broadcast("finish", {'winner_id': winner.user.pk}) self.broadcast("finish", {'winner_id': winner.user.pk})
self.model.finish(winner.user) self.model.finish(winner.user)
self.stopped = True self.stopped = True
self.players = []
self.spectators = []
def start(self): def start(self):