Bug 1448846: Ignore POLLERR on UDP sockets. r=dragana

MozReview-Commit-ID: 1FxhHbH8Neg

--HG--
extra : rebase_source : e50fbde7c3d52141dfb29a9805a00cec9be633ca
This commit is contained in:
Byron Campen [:bwc] 2018-07-02 11:52:02 -05:00
parent 06d2e947d6
commit 721e2034d6

View file

@ -457,7 +457,7 @@ nsUDPSocket::OnSocketReady(PRFileDesc *fd, int16_t outFlags)
NS_ASSERTION(mFD == fd, "wrong file descriptor");
NS_ASSERTION(outFlags != -1, "unexpected timeout condition reached");
if (outFlags & (PR_POLL_ERR | PR_POLL_HUP | PR_POLL_NVAL))
if (outFlags & (PR_POLL_HUP | PR_POLL_NVAL))
{
NS_WARNING("error polling on listening socket");
mCondition = NS_ERROR_UNEXPECTED;