aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-12 21:12:33 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-12 21:12:33 +0000
commit1cf183699059c4c9fc430247fb058226ac110ad0 (patch)
treefa9e713ba89e11c7422d265638fa5d1c95c0d68e /src/or/cpuworker.c
parent537fb82cbb3b0488535f94bbccb0899f1b6b027a (diff)
downloadtor-1cf183699059c4c9fc430247fb058226ac110ad0.tar
tor-1cf183699059c4c9fc430247fb058226ac110ad0.tar.gz
break connection_edge_end out of connection_mark_for_close
svn:r1858
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 294388875..943ca6640 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -83,7 +83,7 @@ void cpuworkers_rotate(void)
connection_t *cpuworker;
while ((cpuworker = connection_get_by_type_state(CONN_TYPE_CPUWORKER,
CPUWORKER_STATE_IDLE))) {
- connection_mark_for_close(cpuworker,0);
+ connection_mark_for_close(cpuworker);
--num_cpuworkers;
}
last_rotation_time = time(NULL);
@@ -117,7 +117,7 @@ int connection_cpu_process_inbuf(connection_t *conn) {
}
num_cpuworkers--;
spawn_enough_cpuworkers(); /* try to regrow. hope we don't end up spinning. */
- connection_mark_for_close(conn,0);
+ connection_mark_for_close(conn);
return 0;
}
@@ -161,7 +161,7 @@ done_processing:
conn->state = CPUWORKER_STATE_IDLE;
num_cpuworkers_busy--;
if (conn->timestamp_created < last_rotation_time) {
- connection_mark_for_close(conn,0);
+ connection_mark_for_close(conn);
num_cpuworkers--;
spawn_enough_cpuworkers();
} else {