From 9067d816e5797676004ae50babb262dc4ca702e1 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 24 May 2005 17:10:19 +0000 Subject: Added extra code to notify mainloop when the iterator has been mangled (e.g. by netsplit quits) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1499 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index f246a2dac..30a961e96 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -32,7 +32,7 @@ using namespace std; #include "inspstring.h" #include "helperfuncs.h" - +extern bool has_been_netsplit; extern std::vector modules; extern std::vector factory; @@ -200,6 +200,7 @@ bool ircd_connector::CheckPing() this->CloseConnection(); this->SetState(STATE_DISCONNECTED); WriteOpers("*** Ping timeout on link to %s (more routes may remain)",this->GetServerName().c_str()); + has_been_netsplit = true; return false; } } -- cgit v1.2.3