提交 892d48ff authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Do not close `Transport` on ICE disconnected as it would prevent ICE restart on…

Do not close `Transport` on ICE disconnected as it would prevent ICE restart on "recv" TCP transports (fixes #228)
上级 c1617595
...@@ -1080,9 +1080,6 @@ namespace RTC ...@@ -1080,9 +1080,6 @@ namespace RTC
// Notify. // Notify.
eventData[JsonStringIceState] = JsonStringDisconnected; eventData[JsonStringIceState] = JsonStringDisconnected;
this->notifier->Emit(this->transportId, "icestatechange", eventData); this->notifier->Emit(this->transportId, "icestatechange", eventData);
// This is a fatal error so close the transport.
Destroy();
} }
void WebRtcTransport::OnDtlsConnecting(const RTC::DtlsTransport* /*dtlsTransport*/) void WebRtcTransport::OnDtlsConnecting(const RTC::DtlsTransport* /*dtlsTransport*/)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论