summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-10-20 09:59:48 -0400
committerNick Mathewson <nickm@torproject.org>2017-10-20 09:59:48 -0400
commit78cbced45cd244c8aab84e6fb8087b852769f5bc (patch)
tree6c3e86442d934554f4a99e8ae4d87671eaf10175 /src/or/main.c
parent35746a9ee75608e7b2393e4519adca602bf2615f (diff)
downloadtor-78cbced45cd244c8aab84e6fb8087b852769f5bc.tar.gz
tor-78cbced45cd244c8aab84e6fb8087b852769f5bc.zip
Rename "tell_event_loop_to_finish" to "...run_external_code"
This function was never about 'finishing' the event loop, but rather about making sure that the code outside the event loop would be run at least once.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index be61628341..e3a73ef03e 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -639,7 +639,7 @@ connection_should_read_from_linked_conn(connection_t *conn)
* runs out of events, now we've changed our mind: tell it we want it to
* finish. */
void
-tell_event_loop_to_finish(void)
+tell_event_loop_to_run_external_code(void)
{
if (!called_loop_once) {
struct timeval tv = { 0, 0 };
@@ -663,7 +663,7 @@ connection_start_reading_from_linked_conn(connection_t *conn)
/* make sure that the event_base_loop() function exits at
* the end of its run through the current connections, so we can
* activate read events for linked connections. */
- tell_event_loop_to_finish();
+ tell_event_loop_to_run_external_code();
} else {
tor_assert(smartlist_contains(active_linked_connection_lst, conn));
}