[TIMOB-86] Race condition in sound: prepareAsync called in state 128
|Fix Version/s||Release 0.6.2|
If release was called just as sound finished it could cause the MediaPlayer to throw an IllegalState exception 'prepareAsync called in state 128'. Being an unchecked exception, it would cause the application to terminate.
- Don Thorp 2011-04-15
(from [73c36134d78e207ef2075d27f7452f363d76c23e]) [#86 state:resolved] Removed call to stop in release. It was causing an IllegalStateException to be thrown in some cases. Also put throwable catches around all audio calls to prevent it from taking the app down. http://github.com/appcelerator/titanium_mobile/commit/73c36134d78e207ef2075d27f7452f363d76c23e"> http://github.com/appcelerator/titanium_mobile/commit/73c36134d78e2...