summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-02-15 15:02:41 +0100
committerLinus Nordberg <linus@nordu.net>2011-02-15 15:02:41 +0100
commitd8b484a501aed60581042be5e0c296fb378998ac (patch)
tree112777dd0ef0ca432f8e79523a2f967c4a67757c /lib
parenta4e5bd026c4d3b7cf4d84506e5322f62e26c73c7 (diff)
Add comments.
Diffstat (limited to 'lib')
-rw-r--r--lib/packet.c4
1 files changed, 3 insertions, 1 deletions
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);