def stopGame(self): GameState.stopGame(self) self.listeningThread.queueMessageToAll(proto.STOPGAME.create()) if self.stopGameTimer: self.stopGameTimer.cancel() self.stopGameTimer = None