diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-09-25 15:25:37 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-09-25 15:25:37 +0000 |
commit | 76391441eebe1bfebddb772419d2ba63ecc913d0 (patch) | |
tree | 665acd3ce64b07a0a6c8d1ca1652d5e0fae48b9c | |
parent | 15974e3190a05a68923bb40dfab457781b18e397 (diff) |
Fix HUP or ERR checking
-rw-r--r-- | hcid/dbus-adapter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c index c7f11d5b..4312c284 100644 --- a/hcid/dbus-adapter.c +++ b/hcid/dbus-adapter.c @@ -1808,7 +1808,7 @@ static gboolean create_bonding_conn_complete(GIOChannel *io, GIOCondition cond, goto cleanup; } - if (cond & G_IO_HUP & G_IO_ERR) { + if (cond & (G_IO_HUP | G_IO_ERR)) { debug("Hangup or error on bonding IO channel"); error_failed(pdata->bonding->conn, pdata->bonding->rq, EIO); goto failed; |