diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-24 17:10:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-24 17:10:19 +0000 |
commit | 9067d816e5797676004ae50babb262dc4ca702e1 (patch) | |
tree | 6ef409d1b199ee7c25fa6a675f4f46761e7eb243 /src/connection.cpp | |
parent | a0f17e57ccc1d6f7923da8eb6ba8e55d1ea61301 (diff) |
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
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<Module*> modules; extern std::vector<ircd_module*> 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; } } |