bugfix: if a dnsworker dies, remember that.

svn:r396
This commit is contained in:
Roger Dingledine 2003-08-13 22:38:46 +00:00
parent e4957f8c59
commit e1f2693d05

View File

@ -291,8 +291,11 @@ int connection_dns_process_inbuf(connection_t *conn) {
if(conn->inbuf_reached_eof) {
log(LOG_ERR,"connection_dnsworker_process_inbuf(): Read eof. Worker dying.");
if(conn->state == DNSWORKER_STATE_BUSY)
if(conn->state == DNSWORKER_STATE_BUSY) {
dns_cancel_pending_resolve(conn->address, NULL);
num_workers_busy--;
}
num_workers--;
return -1;
}