Commit 840ddaa4 authored by Adrien Béraud's avatar Adrien Béraud

ice transport: ignore EPENDING in UDP

Change-Id: Id74b251686266dbe2a75ad01e1b58ba0a4b4501d
parent 09b6db3a
...@@ -1230,7 +1230,7 @@ IceTransport::send(int comp_id, const unsigned char* buf, size_t len) ...@@ -1230,7 +1230,7 @@ IceTransport::send(int comp_id, const unsigned char* buf, size_t len)
} }
pj_ssize_t sent_size = 0; pj_ssize_t sent_size = 0;
auto status = pj_ice_strans_sendto2(pimpl_->icest_.get(), comp_id+1, buf, len, remote.pjPtr(), remote.getLength(), &sent_size); auto status = pj_ice_strans_sendto2(pimpl_->icest_.get(), comp_id+1, buf, len, remote.pjPtr(), remote.getLength(), &sent_size);
if (status == PJ_EPENDING) { if (status == PJ_EPENDING && isTCPEnabled()) {
auto current_size = sent_size; auto current_size = sent_size;
// NOTE; because we are in TCP, the sent size will count the header (2 // NOTE; because we are in TCP, the sent size will count the header (2
// bytes length). // bytes length).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment