Fix thread stuck on stopping emulation
Merge pull request #1057 from cinaera/reset_fix

Fix thread stuck on stopping emulation