X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-14-duplex-both-read.c;h=d1868e2ee63e562f319e7963bfa10c6f0bacaa2b;hb=12ab811533406e22b78ce8b227474f1056375ae4;hp=70bdec0ad39a502967cc6aaa50c9387c97bd0d4d;hpb=1273379185b86aefe5d426d3208289b70044acac;p=ccan 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)