crankycyclops / trogdord

Server component of the trogdor-pp project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The indexes on restored games don't get updated

crankycyclops opened this issue · comments

commented

Steps to reproduce:

  1. Create a game
  2. Dump the game
  3. Restart the server
  4. Restore the game
  5. Try stopping and starting the game and observe that a request for get:game:list with the is_running filter doesn't return the expected result.

I think this is because, on ordinary game creation, I assign event handlers for start and stop but don't do the same for restored games. I need to fix this and write unit tests that cover this case to make sure I don't get a regression on this in the future.