In my game Cacao, I get sometimes this Javascript error :
This occurs in a player who is awake (wake up) by the state's changement WHILE a movement is in progress on the board.
For exemple, gold pieces moving from a tile to a player area.
Movements are triggered by notifications and I can set waiting time with this.notifqueue.setSynchronous().
But these state changements (multipleactiveplayer and gameturn) are independant from client notifications.
So, I don't find how to delay the next player wake up.
On another side, this error has no impact on the game.
And take the hand to another player while last movements plays during 0,5s is not a problem.
Any idea about this issue ?
Thank's.
Code: Select all
Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().For exemple, gold pieces moving from a tile to a player area.
Movements are triggered by notifications and I can set waiting time with this.notifqueue.setSynchronous().
But these state changements (multipleactiveplayer and gameturn) are independant from client notifications.
So, I don't find how to delay the next player wake up.
On another side, this error has no impact on the game.
And take the hand to another player while last movements plays during 0,5s is not a problem.
Any idea about this issue ?
Thank's.