diff --git a/src/msw/sockmsw.cpp b/src/msw/sockmsw.cpp index 2330a33a6c..791f18a49b 100644 --- a/src/msw/sockmsw.cpp +++ b/src/msw/sockmsw.cpp @@ -267,15 +267,12 @@ void wxSocketMSWManager::Install_Callback(wxSocketImpl *socket_, { wxSocketImplMSW * const socket = static_cast(socket_); - if (socket->m_fd != INVALID_SOCKET) - { /* We could probably just subscribe to all events regardless * of the socket type, but MS recommends to do it this way. */ long lEvent = socket->m_server? FD_ACCEPT : (FD_READ | FD_WRITE | FD_CONNECT | FD_CLOSE); gs_WSAAsyncSelect(socket->m_fd, hWin, socket->m_msgnumber, lEvent); - } } /* @@ -286,10 +283,7 @@ void wxSocketMSWManager::Uninstall_Callback(wxSocketImpl *socket_, { wxSocketImplMSW * const socket = static_cast(socket_); - if (socket->m_fd != INVALID_SOCKET) - { gs_WSAAsyncSelect(socket->m_fd, hWin, socket->m_msgnumber, 0); - } } // set the wxBase variable to point to our wxSocketManager implementation