dun_gw: Set GIOChannel to not close on unref

This fixes automatic GIOChannel closing when a bluetooth
connection is attempted.
This commit is contained in:
Guillaume Zajac 2011-03-11 14:39:59 +01:00 committed by Denis Kenzior
parent dad491d7a7
commit 4aa1e669bb
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ static void dun_gw_connect_cb(GIOChannel *io, GError *err, gpointer user_data)
}
fd = g_io_channel_unix_get_fd(io);
g_io_channel_set_close_on_unref(io, TRUE);
g_io_channel_set_close_on_unref(io, FALSE);
ofono_emulator_register(em, fd);
}