From 93f59f53c2dc85ec09926d14123eaf0e94c70d42 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 11 Apr 2004 17:10:16 +0000 Subject: Race condition fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@536 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7351463cc..2bdb46a0b 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -5362,7 +5362,7 @@ void handle_connect(char **parameters, int pcnt, userrec *user) for (int j = 0; j < 255; j++) { if (servers[j] == NULL) { servers[j] = new serverrec; - servers[j]->initiator = true; + //servers[j]->initiator = true; strcpy(servers[j]->internal_addr,Link_IPAddr); servers[j]->internal_port = LinkPort; strcpy(servers[j]->name,Link_ServerName); @@ -6505,10 +6505,10 @@ void process_restricted_commands(char token,char* params,serverrec* source,serve WriteOpers("Sending my burst now."); nb_start = time(NULL); - if (!source->initiator) - { - DoSync(reply,udp_host,udp_port,MyKey); - } + //if (!source->initiator) + //{ + // DoSync(reply,udp_host,udp_port,MyKey); + //} WriteOpers("Completed burst to %s (%d secs)",source->name,time(NULL)-nb_start); break; // anything else @@ -6604,10 +6604,10 @@ void handle_link_packet(long theirkey, char* udp_msg, char* udp_host, int udp_po if (!strcasecmp(servers[i]->internal_addr,udp_host)) { servers[i]->key = atoi(params); log(DEBUG,"Key for this server is now %d",servers[i]->key); - if (servers[i]->initiator) - { + //if (servers[i]->initiator) + //{ DoSync(serv,udp_host,udp_port,MyKey); - } + //} return; } } -- cgit v1.2.3