From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> If transport->filename is not set don't attempt to write to the transport->fd. --- client/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/player.c b/client/player.c index a368c9c710ca..fdb62bac5f4c 100644 --- a/client/player.c +++ b/client/player.c @@ -4892,10 +4892,10 @@ static bool transport_recv(struct io *io, void *user_data) transport->seq++; - if (transport->fd >= 0) { + if (transport->filename) { len = write(transport->fd, buf, ret); if (len < 0) - bt_shell_printf("Unable to write: %s (%d)", + bt_shell_printf("Unable to write: %s (%d)\n", strerror(errno), -errno); } -- 2.45.2