summaryrefslogtreecommitdiff
path: root/lib/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/udp.c')
-rw-r--r--lib/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/udp.c b/lib/udp.c
index 71d7003..22a8375 100644
--- a/lib/udp.c
+++ b/lib/udp.c
@@ -129,7 +129,7 @@ _evcb (evutil_socket_t fd, short what, void *user_data)
assert (msg);
assert (msg->conn);
- if (!msg->conn->is_connected)
+ if (msg->conn->state == RS_CONN_STATE_CONNECTING)
event_on_connect (msg->conn, msg);
if (msg->conn->out_queue)