X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-14-duplex-both-read.c;h=d1868e2ee63e562f319e7963bfa10c6f0bacaa2b;hp=70bdec0ad39a502967cc6aaa50c9387c97bd0d4d;hb=5a510ed5696255910fd42adb47d7c1ffa728a116;hpb=dbbefec6973725d9a16c82747e0c7ce8e5e6c4f2 diff --git a/ccan/io/test/run-14-duplex-both-read.c b/ccan/io/test/run-14-duplex-both-read.c index 70bdec0a..d1868e2e 100644 --- a/ccan/io/test/run-14-duplex-both-read.c +++ b/ccan/io/test/run-14-duplex-both-read.c @@ -28,16 +28,7 @@ static void finish_ok(struct io_conn *conn, struct data *d) static struct io_plan end(struct io_conn *conn, struct data *d) { d->state++; - - /* last one out closes. */ - if (conn == d->c1 && io_is_idle(d->c2)) - return io_close(); - - /* last one out closes. */ - if (conn == d->c2 && io_is_idle(d->c1)) - return io_close(); - - return io_idle(); + return io_close(); } static struct io_plan make_duplex(struct io_conn *conn, struct data *d)