From 7889a30b677b61e7e12a04b2d4eecd2032b708c9 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Sat, 15 Mar 2014 15:33:55 -0700 Subject: Catch all exceptions, fix crash when no current session open --- src/github/daneren2005/dsub/service/ChromeCastController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/service/ChromeCastController.java b/src/github/daneren2005/dsub/service/ChromeCastController.java index bf811e0c..a7c8798a 100644 --- a/src/github/daneren2005/dsub/service/ChromeCastController.java +++ b/src/github/daneren2005/dsub/service/ChromeCastController.java @@ -227,7 +227,7 @@ public class ChromeCastController extends RemoteController { if (mediaPlayer != null && !error) { mediaPlayer.stop(apiClient); } - } catch(IOException e) { + } catch(Exception e) { Log.e(TAG, "Failed to stop RemoteMediaPlayer", e); } downloadService.setPlayerState(PlayerState.IDLE); -- cgit v1.2.3