From 6ec3535170ad7b97b10ae59942a48b6389df8444 Mon Sep 17 00:00:00 2001 From: Settel Date: Fri, 25 Mar 2022 13:26:33 +0100 Subject: [PATCH] bugfix: engine not started reliably for role gamemaster --- client/src/plugins/engine/start.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/plugins/engine/start.js b/client/src/plugins/engine/start.js index ef931f5..57d2f92 100644 --- a/client/src/plugins/engine/start.js +++ b/client/src/plugins/engine/start.js @@ -5,7 +5,7 @@ export default async function() { redirect('/') } } - if (this.isActive) { + if (this.isActive && !this.shouldStop) { console.warn('attempt to start already running engine!') return } @@ -17,6 +17,7 @@ export default async function() { } this.isActive = true + this.shouldStop = false this.fetchUpdate() console.debug('engine started') }