支持日志上下文

This commit is contained in:
xiongziliang
2023-11-20 21:59:43 +08:00
parent a13b8417e5
commit 8bd7157ca1
14 changed files with 32 additions and 20 deletions

View File

@@ -125,12 +125,10 @@ void SrtSession::onError(const SockException &err) {
// 防止互相引用导致不释放
auto transport = std::move(_transport);
getPoller()->async(
[transport] {
//延时减引用防止使用transport对象时销毁对象
//transport->onShutdown(err);
},
false);
async([transport] {
// 延时减引用防止使用transport对象时销毁对象
// transport->onShutdown(err);
},false);
}
void SrtSession::onManager() {