This PR addresses issue #46 which reported that the AsyncEmitter threads hang after app close on iPhones.
Looking into the issue, I noticed that when waiting for new events in the emitter thread, it doesn't check whether the emitter is still running. So the while loop doesn't exit when emitter stops. This PR fixes the condition in the while loop.
This PR addresses issue #46 which reported that the AsyncEmitter threads hang after app close on iPhones.
Looking into the issue, I noticed that when waiting for new events in the emitter thread, it doesn't check whether the emitter is still running. So the while loop doesn't exit when emitter stops. This PR fixes the condition in the while loop.