bugfix: engine not started reliably for role gamemaster
This commit is contained in:
parent
870ee5f330
commit
6ec3535170
@ -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')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user