summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-04-08 03:36:39 +0000
committerNick Mathewson <nickm@torproject.org>2005-04-08 03:36:39 +0000
commit74dc7eedc510d70ea600dd5938f45947a314bc24 (patch)
tree3c3cd636c2b88314e3adaa7e5b17e096dca09c22 /src/or/control.c
parent31c12e265fbd135aba4c335da48ceb5a80f2859e (diff)
downloadtor-74dc7eedc510d70ea600dd5938f45947a314bc24.tar.gz
tor-74dc7eedc510d70ea600dd5938f45947a314bc24.zip
Add kludgy function to force controllers to flush EVENT_ERR_MSG events.
svn:r4057
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 514ff0c6bd..d85d315067 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -330,6 +330,9 @@ send_control_event(uint16_t event, uint32_t len, const char *body)
conns[i]->state == CONTROL_CONN_STATE_OPEN &&
conns[i]->event_mask & (1<<event)) {
send_control_message(conns[i], CONTROL_CMD_EVENT, buflen, buf);
+ if (event == EVENT_ERR_MSG) {
+ _connection_controller_force_write(conns[i]);
+ }
}
}