File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
src/main/java/ie/macinnes/tvheadend Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ repositories {
6868}
6969
7070dependencies {
71- compile ' ie.macinnes.htsp:android-htsp:v0.0.1a14 '
71+ compile ' ie.macinnes.htsp:android-htsp:v0.0.1a15 '
7272 // Used for testing local HTSP lib builds
7373// compile(name: 'library-debug', ext: 'aar')
7474 compile fileTree(include : [' *.jar' ], dir : ' libs' )
Original file line number Diff line number Diff line change @@ -368,6 +368,9 @@ public void onStop() {
368368 super .onStop ();
369369
370370 mConnection .stop ();
371+ mConnection .removeConnectionListener (this );
372+ mConnection .removeAuthenticationListener (this );
373+ mConnection = null ;
371374 }
372375
373376 @ Override
Original file line number Diff line number Diff line change @@ -318,6 +318,13 @@ public void onStart() {
318318 @ Override
319319 public void onStop () {
320320 mConnection .stop ();
321+ mConnection .removeMessageListener (mEpgSyncTask );
322+ mConnection .removeAuthenticationListener (mEpgSyncTask );
323+ mConnection = null ;
324+
325+ mEpgSyncTask .removeEpgSyncListener (this );
326+ mEpgSyncTask = null ;
327+
321328 super .onStop ();
322329 }
323330
Original file line number Diff line number Diff line change @@ -639,8 +639,8 @@ protected void deletePrograms() {
639639 }
640640
641641 private void handleInitialSyncCompleted (@ NonNull HtspMessage message ) {
642- // Ensure we wrap up any pending channel operations before moving onto events . This is no-op
643- // once there are no pending operations
642+ // Ensure we wrap up any pending channel operations. This is no-op once there are no pending
643+ // operations. This should only be needed when there were no events provided at all.
644644 flushPendingChannelOps ();
645645
646646 // Ensure we wrap up any pending event operations. This is no-op once there are no pending
You can’t perform that action at this time.
0 commit comments