coyotte508/pokemon-online — Issue #63: Make the battle logs plugin thread safe
Author: coyotte508
Created: 2012-01-10 23:45:27+00:00
State: open

It's really silly, i just noticed, but if someone forfeits at the same time a battle turn is being executed, it's possible that the calls to the emitCommand part of the plugin happen from two different threads at the same time. A simple mutex system should be enough.