diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-03-26 19:33:44 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-06-21 14:03:00 -0400 |
commit | 1c0a2335cd27ed4f4a61f99ce19b5ba08639eeff (patch) | |
tree | f21a4d88f2436a9b0e810615fe8478f553a26d8a /src/or/channeltls.c | |
parent | 0895808023b023a8eff00c6b6eb27c4ec4b40191 (diff) | |
download | tor-1c0a2335cd27ed4f4a61f99ce19b5ba08639eeff.tar.gz tor-1c0a2335cd27ed4f4a61f99ce19b5ba08639eeff.zip |
Extract channel_do_open_actions() from non-open _change_state cases
This reduces the size of the largest SCC in the callgraph by 30
functions, from 58 to 28.
Diffstat (limited to 'src/or/channeltls.c')
-rw-r--r-- | src/or/channeltls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/channeltls.c b/src/or/channeltls.c index 9d9e7446ab..300304fad1 100644 --- a/src/or/channeltls.c +++ b/src/or/channeltls.c @@ -979,7 +979,7 @@ channel_tls_handle_state_change_on_orconn(channel_tls_t *chan, * We can go to CHANNEL_STATE_OPEN from CHANNEL_STATE_OPENING or * CHANNEL_STATE_MAINT on this. */ - channel_change_state(base_chan, CHANNEL_STATE_OPEN); + channel_change_state_open(base_chan); /* We might have just become writeable; check and tell the scheduler */ if (connection_or_num_cells_writeable(conn) > 0) { scheduler_channel_wants_writes(base_chan); |