Diff between 922a8a8bd4949b073e6423a0f0d59bb273d88014 and 537f96a28399ad9a4140801575b384c8c5716bba

Changed Files

File Additions Deletions Status
client/player.c +5 -0 modified

Full Patch

diff --git a/client/player.c b/client/player.c
index 7a7598c..0d031e4 100644
--- a/client/player.c
+++ b/client/player.c
@@ -5016,6 +5016,11 @@ static bool transport_timer_read(struct io *io, void *user_data)
 		return false;
 
 	fd = io_get_fd(io);
+	if (fd < 0) {
+		bt_shell_printf("io_get_fd() returned %d\n", fd);
+		return false;
+	}
+
 	ret = read(fd, &exp, sizeof(exp));
 	if (ret < 0) {
 		bt_shell_printf("Failed to read: %s (%d)\n", strerror(errno),