don't try to probe a connection that's finished (should fix #284)

This commit is contained in:
yrutschle 2020-12-02 22:49:19 +01:00
parent a3d9df87cb
commit 1e33455fe7

View File

@ -395,9 +395,6 @@ int probe_client_protocol(struct connection *cnx)
&cnx->proto);
}
/* If we read nothing, try again later */
if (n == 0) return PROBE_AGAIN;
/* read() returned an error, so just connect to the last protocol to die */
cnx->proto = &cfg.protocols[cfg.protocols_len-1];
return PROBE_MATCH;