ScummVM won't quit if error() is called in a timer callback
|Reported by:||eriktorbjorn||Owned by:|
Current SVN snapshot.
If ScummVM calls error() inside a timer callback (e.g. in some parts of Digital iMUSE), ScummVM won't quit no matter (almost) what you do. I believe this is because when OSystem_SDL::quit() deletes _timer, it has to wait for the timer class to release its mutex. And that won't happen since we're still inside the timer callback.
I'm not sure how to fix this.
Ticket imported from: #2830903. Ticket imported from: bugs/4502.