aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-11-04 05:00:12 +0000
committerNick Mathewson <nickm@torproject.org>2005-11-04 05:00:12 +0000
commita913cb3536b8d0dadb719f4e014ff9a51ef14a2a (patch)
treed2a5fc358d6492e85ea59ab22c3ef26f35123ea8 /src/or
parent9e82f0cdb70839b5893147da446bb35a7b0ce3e6 (diff)
downloadtor-a913cb3536b8d0dadb719f4e014ff9a51ef14a2a.tar
tor-a913cb3536b8d0dadb719f4e014ff9a51ef14a2a.tar.gz
prevent duplicat mark-for-close
svn:r5347
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 1c2cade0b..d3bccca0a 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -591,8 +591,9 @@ run_connection_housekeeping(int i, time_t now)
buf_datalen(conn->inbuf)>=1024) {
info(LD_DIR,"Trying to extract information from wedged server desc download.");
connection_dir_reached_eof(conn);
+ } else {
+ connection_mark_for_close(conn);
}
- connection_mark_for_close(conn);
return;
}