Commit 7d2e591b authored by jan.koester's avatar jan.koester
Browse files

test

parent 7d8e2e43
Loading
Loading
Loading
Loading
+1 −4
Changes for src/event/iocp.cpp: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -134,10 +134,7 @@ namespace netplus {
			g_eventapi->ConnectEvent(pClientContext->CurCon, tid, args);

			try {
				std::shared_ptr<char[]> buf(new char[BLOCKSIZE], std::default_delete<char[]>());
				size_t recv = pClientContext->CurCon->csock->recvData(buf.get(), BLOCKSIZE, 0);
				pClientContext->CurCon->RecvData.append(buf.get(), recv);
				g_eventapi->RequestEvent(pClientContext->CurCon, tid, args);
				pClientContext->CurCon->csock->recvData(nullptr,0,0);
			} catch (NetException& e) {
				std::cerr << e.what() << std::endl;
				if (e.getErrorType() != NetException::Note)