summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/or/main.c b/src/or/main.c
index ec07e0fcce..e4d1d24398 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -838,17 +838,6 @@ static void second_elapsed_callback(int fd, short event, void *args)
current_second = now.tv_sec; /* remember which second it is, for next time */
-#if 0
- for (i=0;i<nfds;i++) {
- conn = connection_array[i];
- if (connection_has_pending_tls_data(conn) &&
- connection_is_reading(conn)) {
- log_fn(LOG_DEBUG,"sock %d has pending bytes.",conn->s);
- return; /* has pending bytes to read; don't let poll wait. */
- }
- }
-#endif
-
if (evtimer_add(timeout_event, &one_second))
log_fn(LOG_ERR,
"Error from libevent when setting one-second timeout event");