防止忽略shutdown事件

This commit is contained in:
xiongziliang 2022-05-13 23:54:04 +08:00
parent 3e869c1f1d
commit f1555a5501
2 changed files with 4 additions and 0 deletions

View File

@ -386,6 +386,8 @@ void HlsPlayerImp::onShutdown(const SockException &ex) {
strong_self->PlayerImp<HlsPlayer, PlayerBase>::onShutdown(ex);
}
});
} else {
PlayerImp<HlsPlayer, PlayerBase>::onShutdown(ex);
}
}

View File

@ -53,6 +53,8 @@ void TsPlayerImp::onShutdown(const SockException &ex) {
strong_self->PlayerImp<TsPlayer, PlayerBase>::onShutdown(ex);
}
});
} else {
PlayerImp<TsPlayer, PlayerBase>::onShutdown(ex);
}
}