aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-09 16:33:04 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-09 16:33:04 +0000
commitb384c5a18d7567d0bce7d6c14b820c61843ee987 (patch)
treedf9f2eb9ca01360f962b1079bd276e878b5f6d07 /src/or/main.c
parentd18528a2abb1b8b5af3d8e538ae07318ab479fa5 (diff)
downloadtor-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.c2
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;
}