mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 21:15:57 +08:00
srt connection transfer support
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user