From d8b484a501aed60581042be5e0c296fb378998ac Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 15 Feb 2011 15:02:41 +0100 Subject: Add comments. --- lib/packet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/packet.c') diff --git a/lib/packet.c b/lib/packet.c index b7ec05a..3334636 100644 --- a/lib/packet.c +++ b/lib/packet.c @@ -473,7 +473,7 @@ rs_packet_send (struct rs_packet *pkt, void *user_data) _do_send (pkt); else if (_conn_open (conn, pkt)) - return RSE_SOME_ERROR; /* FIXME */ + return RSE_SOME_ERROR; /* FIXME: inconsistent with all the return -1 */ assert (conn->evb); assert (conn->bev); @@ -482,6 +482,8 @@ rs_packet_send (struct rs_packet *pkt, void *user_data) conn->user_data = user_data; bufferevent_setcb (conn->bev, _read_cb, _write_cb, _event_cb, pkt); + + /* Do dispatch, unless the user wants to do it herself. */ if (!conn->user_dispatch_flag) { err = event_base_dispatch (conn->evb); -- cgit v1.1