conn_type_to_string() on a listener already says it's a listener

This commit is contained in:
Roger Dingledine 2012-06-16 02:29:03 -04:00
parent c37b8023b7
commit 26855fe22c

View File

@ -1266,7 +1266,7 @@ options_act_reversible(const or_options_t *old_options, char **msg)
SMARTLIST_FOREACH(new_listeners, connection_t *, conn, SMARTLIST_FOREACH(new_listeners, connection_t *, conn,
{ {
log_notice(LD_NET, "Closing partially-constructed listener %s on %s:%d", log_notice(LD_NET, "Closing partially-constructed %s on %s:%d",
conn_type_to_string(conn->type), conn->address, conn->port); conn_type_to_string(conn->type), conn->address, conn->port);
connection_close_immediate(conn); connection_close_immediate(conn);
connection_mark_for_close(conn); connection_mark_for_close(conn);