]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
Disable symbols visibility support for the Clang compiler.
[wxWidgets.git] / src / common / socket.cpp
index c0c35df4e2e16bbfcf1e80a2cd0b6496a663a675..64803df7a4f527d76a9bfc4c280c64ed774b1dbd 100644 (file)
@@ -980,7 +980,11 @@ wxUint32 wxSocketBase::DoRead(void* buffer_, wxUint32 nbytes)
             {
                 // if we don't want to wait, just return immediately
                 if ( m_flags & wxSOCKET_NOWAIT )
+                {
+                    // this shouldn't be counted as an error in this case
+                    SetError(wxSOCKET_NOERROR);
                     break;
+                }
 
                 // otherwise wait until the socket becomes ready for reading or
                 // an error occurs on it