diff options
author | Roger Dingledine <arma@torproject.org> | 2004-05-09 16:33:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-05-09 16:33:04 +0000 |
commit | b384c5a18d7567d0bce7d6c14b820c61843ee987 (patch) | |
tree | df9f2eb9ca01360f962b1079bd276e878b5f6d07 /src/or/main.c | |
parent | d18528a2abb1b8b5af3d8e538ae07318ab479fa5 (diff) | |
download | tor-b384c5a18d7567d0bce7d6c14b820c61843ee987.tar tor-b384c5a18d7567d0bce7d6c14b820c61843ee987.tar.gz |
bugfix: do directory_send_command only after we've established a socket
also many comments, cleaning, etc
svn:r1823
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index 17000ab79..5a8ae948c 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -172,9 +172,7 @@ int connection_is_writing(connection_t *conn) { /* Tell the main loop to stop notifying 'conn' of any write events. */ void connection_stop_writing(connection_t *conn) { - tor_assert(conn && conn->poll_index >= 0 && conn->poll_index < nfds); - if(poll_array[conn->poll_index].events & POLLOUT) poll_array[conn->poll_index].events -= POLLOUT; } |