aboutsummaryrefslogtreecommitdiffstats
path: root/examples/stream-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stream-client.c')
-rw-r--r--examples/stream-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stream-client.c b/examples/stream-client.c
index c54db02..b0aea5e 100644
--- a/examples/stream-client.c
+++ b/examples/stream-client.c
@@ -72,8 +72,9 @@ static int kbd_cb(struct osmo_fd *fd, unsigned int what)
int ret;
ret = read(STDIN_FILENO, buf, sizeof(buf));
-
LOGP(DSTREAMTEST, LOGL_NOTICE, "read %d byte from keyboard\n", ret);
+ if (ret < 0)
+ return ret;
msg = msgb_alloc(1024, "STREAMCLIENT/test");
if (msg == NULL) {