From c99ac63b9a83f722bc9604caf2882af8f7af8532 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 10 Dec 2006 19:39:26 +0000 Subject: Fix bug found on barafranca, where quitting the user causes a cascade of error state notifications without actually quitting the user until much later, wasting cpu time git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5919 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 986aea4cb..0d6b0d990 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -2130,7 +2130,8 @@ void userrec::HandleEvent(EventType et, int errornum) this->FlushWriteBuf(); break; case EVENT_ERROR: - this->SetWriteError(errornum ? strerror(errornum) : "EOF from client"); + /** This should be safe, but dont DARE do anything after it -- Brain */ + userrec::QuitUser(ServerInstance, this, errornum ? strerror(errornum) : "EOF from client"); break; } } -- cgit v1.2.3