Fix crash on resume from background #46

merged 1 commit into from Mar 19, 2013


None yet
3 participants

baspellis commented Mar 15, 2013

When resumed from background the sessionPropertyListener is fired and checkSessionProperties is fired, but this causes a crash. Since resuming from background does not involve any Hardware changes checkSessionProperties is not necessary to be fired.

I've added a check on the route change reason. If the reason is only a category change the checkSessionProperties will not be fired anymore.

@baspellis baspellis Upon Audio Session Interruption don't check Session Properties if the…
… route change reason is a Category Change since this causes a crash.

it works


baspellis commented Mar 19, 2013

What do you mean with it works? You don't get the crash when resuming from the background? FYI, it only occurs on the device not the simulator.

soulfly commented Mar 19, 2013

yes, i don't get the crash on devices with your fix

alexbw merged commit 2d93d41 into alexbw:master Mar 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment