diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-11 17:10:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-11 17:10:16 +0000 |
commit | 93f59f53c2dc85ec09926d14123eaf0e94c70d42 (patch) | |
tree | b2e730aef57687e6a8471157f82d149984475c17 | |
parent | e97649597a0c81603e632481baeeeabbcc7a0108 (diff) |
Race condition fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@536 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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; } } |