mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 04:55:58 +08:00
防止析构函数抛异常导致崩溃问题 (#2546)
This commit is contained in:
@@ -124,7 +124,11 @@ MediaSource::MediaSource(const string &schema, const MediaTuple& tuple): _tuple(
|
||||
}
|
||||
|
||||
MediaSource::~MediaSource() {
|
||||
unregist();
|
||||
try {
|
||||
unregist();
|
||||
} catch (std::exception &ex) {
|
||||
WarnL << "Exception occurred: " << ex.what();
|
||||
}
|
||||
}
|
||||
|
||||
const string& MediaSource::getSchema() const {
|
||||
|
||||
Reference in New Issue
Block a user