From: pk910 Date: Tue, 15 Jul 2014 22:14:48 +0000 (+0200) Subject: [IOMultiplexerV2] Fixed WIN32 backend bug (it's still receiving events for removed... X-Git-Url: http://git.pk910.de/?p=IOMultiplexer.git;a=commitdiff_plain;h=8af3ea51f146bf1c797dedfd345a88e3db98a568 [IOMultiplexerV2] Fixed WIN32 backend bug (it's still receiving events for removed sockets, so drop them...) --- diff --git a/src/IOHandler/IOEngine_win32.c b/src/IOHandler/IOEngine_win32.c index 0a0a7ac..ffc44e1 100644 --- a/src/IOHandler/IOEngine_win32.c +++ b/src/IOHandler/IOEngine_win32.c @@ -67,6 +67,8 @@ static LRESULT CALLBACK engine_win32_wndproc(HWND hWnd, UINT uMsg, WPARAM wParam return 0; case IDT_SOCKET: iosock = engine_win32_get_iosock(wParam); + if(!iosock) + return 0; events = WSAGETSELECTEVENT(lParam); if((events & FD_CONNECT)) {