X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/6c34bb5a48e5fe812760a7c0ba55a7e7c6ccd8b0..ffb204b696ed373e9e367d45079c3b725c98efe4:/src/opserv.c diff --git a/src/opserv.c b/src/opserv.c index c856f76..cd0617f 100644 --- a/src/opserv.c +++ b/src/opserv.c @@ -3065,6 +3065,10 @@ routing_connect_server(char *server, int port, struct server *to) wc->server = strdup(server); wc->target = strdup(to->name); + /* Just to make sure there isn't one left hanging + * if 2 connections are attempted at once.. + * */ + routing_delete_connect_timer(server); dict_insert(opserv_waiting_connections, strdup(server), wc); timeq_add(now + ROUTING_CONNECT_TIMEOUT, routing_connect_timeout, wc);