Fix for a possible concurrency issue.
Fix for a possible concurrency issue.

GabrielDancause/jbooktrader,GabrielDancause/jbooktrader,mkoistinen/JBookTrader,mkoistinen/JBookTrader,mkoistinen/JBookTrader,GabrielDancause/jbooktrader