Commit 415593b1 authored by jan.koester's avatar jan.koester
Browse files

ups

parent d8ae8890
Loading
Loading
Loading
Loading
+1 −7
Changes for src/windows/tcp.cpp: 1 added line, 7 removed lines.
Original line number Diff line number Diff line
@@ -240,13 +240,7 @@ size_t netplus::tcp::recvData(void* data, unsigned long size,int flags){
        }
    }

    int rc = WSAWaitForMultipleEvents(1, &_Overlapped.hEvent, TRUE, INFINITE, TRUE);
    if (rc == WSA_WAIT_FAILED) {
        exception[NetException::Error] << "WSAWaitForMultipleEvents failed with error: " << WSAGetLastError();
        throw exception;
    }

    rc = WSAGetOverlappedResult(_Socket, &_Overlapped, &dwBytes, FALSE, (LPDWORD) &flags);
    int rc = WSAGetOverlappedResult(_Socket, &_Overlapped, &dwBytes, FALSE, (LPDWORD) &flags);
    if (rc == FALSE) {
        exception[NetException::Error] << "WSARecv operation failed with error: "<< WSAGetLastError();
        throw exception;