初始化selectedTuple为nullptr, 修复webrtc ice建连状态错误

This commit is contained in:
ziyue 2023-03-03 15:25:15 +08:00
parent 56d6eb0f28
commit 8ab3e0a4d4

View File

@ -127,7 +127,7 @@ namespace RTC
std::string oldPassword;
IceState state{ IceState::NEW };
std::list<RTC::TransportTuple *> tuples;
RTC::TransportTuple *selectedTuple;
RTC::TransportTuple *selectedTuple { nullptr };
std::weak_ptr<RTC::TransportTuple> lastSelectedTuple;
//最大不超过mtu
static constexpr size_t StunSerializeBufferSize{ 1600 };