]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixed bug where when a server split all other servers would stop responding
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 23 May 2005 18:51:54 +0000 (18:51 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 23 May 2005 18:51:54 +0000 (18:51 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1479 e03df62e-2008-0410-955e-edbf42e46eb7

src/commands.cpp
src/inspircd.cpp

index 5466a62581e639d293a31c39325a1f062b0e4ff6..916c9bc10b3193a3860c0fcdd82c9fedbbaca255 100644 (file)
@@ -2631,6 +2631,7 @@ void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char
                        }
                }
        }
+       log(DEBUG,"Done with netsplit.");
 }
 
 unsigned long authcookie;
index c0603db5951ff87f1051845b95402f3746c574b8..712e26f5e5f82268a94d1683e519a88b1c5cb56f 100644 (file)
@@ -2913,6 +2913,11 @@ int InspIRCd(char** argv, int argc)
                                        strlcpy(tcp_msg,msg.c_str(),MAXBUF);
                                        if (me[x])
                                                handle_link_packet(tcp_msg, tcp_host, me[x], tcp_sum);
+                                       if (!me[x]->FindHost(tcp_host))
+                                       {
+                                               log(DEBUG,"Connector gone, bailing!");
+                                               goto label;
+                                       }
                                }
                                        sums.clear();   // we're done, clear the list for the next operation
                                        msgs.clear();