diff --git a/src/Http/HlsPlayer.cpp b/src/Http/HlsPlayer.cpp index 07c6a3cd..e7af45e4 100644 --- a/src/Http/HlsPlayer.cpp +++ b/src/Http/HlsPlayer.cpp @@ -386,6 +386,8 @@ void HlsPlayerImp::onShutdown(const SockException &ex) { strong_self->PlayerImp::onShutdown(ex); } }); + } else { + PlayerImp::onShutdown(ex); } } diff --git a/src/Http/TsplayerImp.cpp b/src/Http/TsplayerImp.cpp index 6d6d1c17..ae988637 100644 --- a/src/Http/TsplayerImp.cpp +++ b/src/Http/TsplayerImp.cpp @@ -53,6 +53,8 @@ void TsPlayerImp::onShutdown(const SockException &ex) { strong_self->PlayerImp::onShutdown(ex); } }); + } else { + PlayerImp::onShutdown(ex); } }