}
host = director_host_get(conn->dir, &ip, port);
- /* reset failure timestamp so we'll actually try to connect there. */
- host->last_network_failure = 0;
/* remote suggests us to connect elsewhere */
if (dir->right != NULL &&
return TRUE;
}
+ /* reset failure timestamp so we'll actually try to connect there. */
+ host->last_network_failure = 0;
+ /* reset removed-flag, so we don't crash */
+ host->removed = FALSE;
+
if (dir->right == NULL) {
dir_debug("Received CONNECT request to %s, "
"initializing right", host->name);