Server throw an IllegalStateException sometimes on userHasExited event
dpellier opened this issue · comments
Dans les log du server, de temps à autre l'erreur suivante apparaît.
Celle-ci suit toujours un event de type userHasExited.
2013-10-08 10:23:28.314 HTTPElevator http://localhost:3000/userHasExited
Exception in thread "pool-1-thread-2392" java.lang.IllegalStateException: when done, user have to wait at least one tick
at elevator.server.Score.score(Score.java:30)
at elevator.server.Score.success(Score.java:24)
at elevator.server.ElevatorGame.onTick(ElevatorGame.java:89)
at elevator.Clock$1.run(Clock.java:29)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Too bad automatic tests haven't seen this issue. Side effect of #13. Will be fixed soon. Thanks for reporting this.