From a6560f4d50e3eea079dc983bd1e01ce9b1241ed8 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 2 Mar 2010 00:36:58 +0000 Subject: Log duplicate UUID events a bit better git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12580 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengines/socketengine_epoll.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/socketengines/socketengine_epoll.cpp') diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 934106e54..4176c3b3a 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -233,6 +233,9 @@ int EPollEngine::DispatchEvents() { ReadEvents++; eh->HandleEvent(EVENT_READ); + if (eh != ref[events[j].data.fd]) + // whoa! we got deleted, better not give out the write event + continue; } if (events[j].events & EPOLLOUT) { -- cgit v1.2.3