Fix HUP or ERR checking

This commit is contained in:
Johan Hedberg 2006-09-25 15:25:37 +00:00
parent 15974e3190
commit 76391441ee

View File

@ -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;