Skip to content
Snippets Groups Projects
Commit 13947a47 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

ice_transport: don't fail on UDP for epending status

PJ_EPENDING can be ignored for UDP. In fact, because it's a UDP
packet we don't care.

Change-Id: I84636730853bae2d43f39b16e638c6b7f57e276b
Gitlab: #165
parent 57e675b7
No related branches found
No related tags found
No related merge requests found
...@@ -1244,7 +1244,7 @@ IceTransport::send(int comp_id, const unsigned char* buf, size_t len) ...@@ -1244,7 +1244,7 @@ IceTransport::send(int comp_id, const unsigned char* buf, size_t len)
pimpl_->waitDataCv_.wait(lk); pimpl_->waitDataCv_.wait(lk);
current_size = pimpl_->lastReadLen_[comp_id]; current_size = pimpl_->lastReadLen_[comp_id];
} }
} else if (status != PJ_SUCCESS) { } else if (status != PJ_SUCCESS && status != PJ_EPENDING) {
if (status == PJ_EBUSY) { if (status == PJ_EBUSY) {
errno = EAGAIN; errno = EAGAIN;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment