meadvillerb/onstomp — comment on commit a88ccb0411db22641fe1caf137df916eb1733ce5
File: lib/onstomp/components/threaded_processor.rb line 35
By iande:

Definitely a band-aid type fix. This is mainly an issue when an event handler has caused the client to make a new connection, in which case a new @run_thread is created. Now, that wouldn't necessarily be a problem, except when it is an IO exception that triggered the event, e.g.: `on_connection_closed`, the exception itself may be re-raised after the event handler has been processed, thus causing an appropriately handled IO exception to be re-raised in the main thread, terminating the program.