X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-16-duplex-test.c;fp=ccan%2Fio%2Ftest%2Frun-16-duplex-test.c;h=addca841e627a592d550a66ed56689e28479008a;hp=8a1a04f0c8190fc25ebd9ec61180d7d5d54b91a8;hb=f7ab2c65d40839a327e50876dc2708ab7b11aa52;hpb=cdf62dce7077a9f9a818edbb67d31d033cbb73c6 diff --git a/ccan/io/test/run-16-duplex-test.c b/ccan/io/test/run-16-duplex-test.c index 8a1a04f0..addca841 100644 --- a/ccan/io/test/run-16-duplex-test.c +++ b/ccan/io/test/run-16-duplex-test.c @@ -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)