mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
修复hls注册抛异常可能导致的bug
This commit is contained in:
parent
44f4e9acd4
commit
6078ca3e81
@ -40,7 +40,12 @@ HlsMakerImp::HlsMakerImp(const string &m3u8_file,
|
|||||||
}
|
}
|
||||||
|
|
||||||
HlsMakerImp::~HlsMakerImp() {
|
HlsMakerImp::~HlsMakerImp() {
|
||||||
|
try {
|
||||||
|
// 可能hls注册时导致抛异常
|
||||||
clearCache(false, true);
|
clearCache(false, true);
|
||||||
|
} catch (std::exception &ex) {
|
||||||
|
WarnL << ex.what();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void HlsMakerImp::clearCache() {
|
void HlsMakerImp::clearCache() {
|
||||||
|
Loading…
Reference in New Issue
Block a user