diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-12-29 05:06:47 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-12-29 05:06:47 +0000 |
commit | 26c0d6ec5861cec381af0b850163ff0a4ac65850 (patch) | |
tree | 358564cdbfc064f451e81ee81ab7a779838ce52b /src/or/control.c | |
parent | 361998d0f389b1a77035317b0f09587ca6ee3be2 (diff) | |
download | tor-26c0d6ec5861cec381af0b850163ff0a4ac65850.tar.gz tor-26c0d6ec5861cec381af0b850163ff0a4ac65850.zip |
r11743@Kushana: nickm | 2006-12-28 23:13:21 -0500
Refactor _connection_controller_force_write back into conncetion_handle_write. Again, the line count goes down: groovy!
svn:r9208
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c index 90ab2ca0cc..21b5350153 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -619,7 +619,7 @@ send_control0_event(uint16_t event, uint32_t len, const char *body) if (control_conn->event_mask & (1<<event)) { send_control0_message(control_conn, CONTROL0_CMD_EVENT, buflen, buf); if (event == EVENT_ERR_MSG) - _connection_controller_force_write(control_conn); + connection_handle_write(TO_CONN(control_conn), 1); } } } @@ -663,7 +663,7 @@ send_control1_event_string(uint16_t event, event_format_t which, if (control_conn->event_mask & (1<<event)) { connection_write_to_buf(msg, strlen(msg), TO_CONN(control_conn)); if (event == EVENT_ERR_MSG) - _connection_controller_force_write(control_conn); + connection_handle_write(TO_CONN(control_conn), 1); } } } |