srt connection transfer support

This commit is contained in:
xiongguangjie
2022-09-20 00:39:42 +08:00
parent b77c19c969
commit ec1942fa81
5 changed files with 42 additions and 3 deletions

View File

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