mirror of git://git.sysmocom.de/ofono
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:
parent
dad491d7a7
commit
4aa1e669bb
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue