Commit 6f2ecccb authored by jan.koester's avatar jan.koester
Browse files

test

parent a4a1d98f
Loading
Loading
Loading
Loading
+3 −4
Changes for src/event/iocp.cpp: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -63,16 +63,15 @@ namespace netplus {
	class client {
	public:
		client(eventapi *eapi) : api(eapi), State(IO_READ_STATE) {
			api->CreateConnection(&CurCon);
			CurCon = std::make_unique<con>(api);
		}

		~client() {
			api->DestroyConnection(CurCon);
		}

		int                       State;
		eventapi                 *api;
		con	                     *CurCon;
		std::unique_ptr<con>      CurCon;
		std::mutex				  cltmtx;
	};

@@ -226,7 +225,7 @@ namespace netplus {
				}

				client* pClientContext = reinterpret_cast<client*>(lpContext);
				con* curCon = pClientContext->CurCon;
				std::unique_ptr<con> &curCon = pClientContext->CurCon;

				// Check for I/O completion errors or graceful disconnects
				if (!bReturn || (bReturn && dwBytesTransfered == 0)) {