mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-03 17:14:21 +08:00
Fix HUP or ERR checking
This commit is contained in:
parent
15974e3190
commit
76391441ee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user