Commit 94c464b6 authored by jan.koester's avatar jan.koester
Browse files

test

parent ee88c415
Loading
Loading
Loading
Loading
+2 −12
Changes for src/event/iocp.cpp: 2 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -115,18 +115,8 @@ namespace netplus {

			g_eventapi->ConnectEvent(*pClientContext->CurCon, tid, args);
			buffer buf(0);
			INITIALRECV:
			try {
				size_t recv = pClientContext->CurCon->csock->recvData(buf, 0);
			}catch (NetException& e) {
				 if (e.getErrorType() != NetException::Note) {
					std::cerr << e.what() << std::endl;
					g_eventapi->DisconnectEvent(*pClientContext->CurCon, tid, args);
					delete pClientContext->CurCon->csock;
					delete pClientContext;
					throw e;
				 }
			}

			pClientContext->CurCon->csock->recvData(buf, 0);
		}

	private: