commit | 3b7acf778674e1d5dd83b14fa2d65b0149d9d711 | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@nokia.com> | Fri Oct 02 10:52:30 2009 +0200 |
committer | Johan Hedberg <johan.hedberg@nokia.com> | Fri Oct 02 11:18:49 2009 +0200 |
tree | 49b444e4749cac2c9e497157a75bbba7a8c0d146 | |
parent | 28648cc398d6c03a90906c94c8f36b097176f644 [diff] |
Fix GIOCondition error check
diff --git a/audio/control.c b/audio/control.c index a6f930a..fe37f98 100644 --- a/audio/control.c +++ b/audio/control.c
@@ -472,7 +472,7 @@ struct avrcp_header *avrcp; int ret, packet_size, operand_count, sock; - if (!(cond | G_IO_IN)) + if (cond & (G_IO_ERR | G_IO_HUP | G_IO_NVAL)) goto failed; sock = g_io_channel_unix_get_fd(control->io);