summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-06-28 14:48:24 +0200
committerRichard Braun <rbraun@sceen.net>2014-06-28 14:48:24 +0200
commit6ad2a33e7fc5cda05eefdec789f4a2033645ebbe (patch)
treef0d2ff1931f36fa5fac85e5e62ca98496e5c1100
parent6f856c62613ffc82bf3572a372d2851638c2fb90 (diff)
Revert "libpipe: fix calls to pipe_send with no data"
This reverts commit 6f856c62613ffc82bf3572a372d2851638c2fb90. As the comment right above the change says, "this [sending control packets] depends on the fact that we always write a data packet".
-rw-r--r--libpipe/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpipe/pipe.c b/libpipe/pipe.c
index 56c339dd..f9300e7c 100644
--- a/libpipe/pipe.c
+++ b/libpipe/pipe.c
@@ -358,7 +358,7 @@ pipe_send (struct pipe *pipe, int noblock, void *source,
}
}
- if (!err && data_len > 0)
+ if (!err)
err = (*pipe->class->write)(pipe->queue, source, data, data_len, amount);
if (!err)