send an end to the streams we close when we hibernate, rather

than just chopping them off


svn:r3083
This commit is contained in:
Roger Dingledine 2004-12-05 13:02:18 +00:00
parent 1c9c813866
commit f21564eb29

View File

@ -719,6 +719,8 @@ hibernate_go_dormant(time_t now) {
while ((conn = connection_get_by_type(CONN_TYPE_OR)) ||
(conn = connection_get_by_type(CONN_TYPE_AP)) ||
(conn = connection_get_by_type(CONN_TYPE_EXIT))) {
if (CONN_IS_EDGE(conn))
connection_edge_end(conn, END_STREAM_REASON_MISC, conn->cpath_layer);
log_fn(LOG_INFO,"Closing conn type %d", conn->type);
connection_mark_for_close(conn);
}