]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-16-duplex-test.c
io: change io_idle() to io_wait()
[ccan] / ccan / io / test / run-16-duplex-test.c
index 8a1a04f0c8190fc25ebd9ec61180d7d5d54b91a8..addca841e627a592d550a66ed56689e28479008a 100644 (file)
@@ -28,7 +28,7 @@ static void finish_ok(struct io_conn *conn, struct data *d)
 static struct io_plan write_done(struct io_conn *conn, struct data *d)
 {
        d->state++;
-       return io_idle();
+       return io_wait(d, io_close_cb, NULL);
 }
 
 static struct io_plan read_done(struct io_conn *conn, struct data *d)