awvalenti / bauhinia

Cross-platform Wii Remote Java library and remote controller application
GNU General Public License v3.0
6 stars 0 forks source link

Make coronata resilient to exceptions thrown by observers #48

Open awvalenti opened 7 years ago

awvalenti commented 7 years ago

Events fired by coronata are currently handled directly, on the same thread and without try/catches. This makes it very susceptible to errors. In particular, ButtonHandlerThread should keep running if buttonPressed or Released throws an exception.

Maybe EventsMediator should handle the exceptions.