Merge pull request #90 from lishoujun/develop

fix crash
This commit is contained in:
Stefan Schüller 2019-01-03 08:10:31 +01:00 committed by GitHub
commit 32c46319a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -425,11 +425,11 @@ public class VideoPlayActivity extends AppCompatActivity implements VideoRendere
@Override @Override
protected void onDestroy() { protected void onDestroy() {
super.onDestroy();
simpleExoPlayerView.setPlayer(null); simpleExoPlayerView.setPlayer(null);
if (torrentStream != null){ if (torrentStream != null){
torrentStream.stopStream(); torrentStream.stopStream();
} }
super.onDestroy();
Log.v(TAG, "onDestroy..."); Log.v(TAG, "onDestroy...");
} }