Bug 1148231: fix wrong error message on DataChannel failed resend of packet r=khuey
authorRandell Jesup <rjesup@jesup.org>
Fri, 27 Mar 2015 13:34:45 -0400
changeset 266594 48b5fffff1ec30277cab3755cf07601fcb7c1f39
parent 266593 ffcb5e699ef5cfcc7ed12bd252c323af00d7b02d
child 266595 dcc49f2ed01607ec3e9b9955c9abb55005d52679
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs1148231
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1148231: fix wrong error message on DataChannel failed resend of packet r=khuey
netwerk/sctp/datachannel/DataChannel.cpp
--- a/netwerk/sctp/datachannel/DataChannel.cpp
+++ b/netwerk/sctp/datachannel/DataChannel.cpp
@@ -1120,17 +1120,17 @@ DataChannelConnection::SendDeferredMessa
         uint32_t len               = channel->mBufferedData[0]->mLength;
 
         // SCTP will return EMSGSIZE if the message is bigger than the buffer
         // size (or EAGAIN if there isn't space)
         if ((result = usrsctp_sendv(mSocket, data, len,
                                     nullptr, 0,
                                     (void *)spa, (socklen_t)sizeof(struct sctp_sendv_spa),
                                     SCTP_SENDV_SPA,
-                                    0) < 0)) {
+                                    0)) < 0) {
           if (errno == EAGAIN || errno == EWOULDBLOCK) {
             // leave queued for resend
             failed_send = true;
             LOG(("queue full again when resending %d bytes (%d)", len, result));
           } else {
             LOG(("error %d re-sending string", errno));
             failed_send = true;
           }