bugfix: engine not started reliably for role gamemaster

This commit is contained in:
Settel 2022-03-25 13:26:33 +01:00
parent 870ee5f330
commit 6ec3535170

View File

@ -5,7 +5,7 @@ export default async function() {
redirect('/') redirect('/')
} }
} }
if (this.isActive) { if (this.isActive && !this.shouldStop) {
console.warn('attempt to start already running engine!') console.warn('attempt to start already running engine!')
return return
} }
@ -17,6 +17,7 @@ export default async function() {
} }
this.isActive = true this.isActive = true
this.shouldStop = false
this.fetchUpdate() this.fetchUpdate()
console.debug('engine started') console.debug('engine started')
} }