rconn: Use rconn_send() to send echo requests.
authorBen Pfaff <blp@nicira.com>
Wed, 13 Aug 2008 18:26:26 +0000 (11:26 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 13 Aug 2008 18:26:26 +0000 (11:26 -0700)
There's no point in sending echo requests by hand.

lib/rconn.c

index a4ff91a..da3ffb6 100644 (file)
@@ -334,7 +334,7 @@ run_ACTIVE(struct rconn *rc)
 {
     if (timed_out(rc)) {
         unsigned int base = MAX(rc->last_received, rc->state_entered);
-        queue_push_tail(&rc->txq, make_echo_request());
+        rconn_send(rc, make_echo_request(), NULL);
         VLOG_DBG("%s: idle %u seconds, sending inactivity probe",
                  rc->name, (unsigned int) (time_now() - base));
         state_transition(rc, S_IDLE);