mirror of git://git.sysmocom.de/ofono
gatchat: Check for disconnection when resuming
If the internal GAtIO is no longer valid, treat it as if our channel was disconnected.
This commit is contained in:
parent
cc6a43c477
commit
719842ea39
|
@ -913,6 +913,11 @@ void g_at_chat_resume(GAtChat *chat)
|
|||
|
||||
chat->suspended = FALSE;
|
||||
|
||||
if (g_at_io_get_channel(chat->io) == NULL) {
|
||||
io_disconnect(chat);
|
||||
return;
|
||||
}
|
||||
|
||||
g_at_io_set_disconnect_function(chat->io, io_disconnect, chat);
|
||||
|
||||
g_at_io_set_debug(chat->io, chat->debugf, chat->debug_data);
|
||||
|
|
Loading…
Reference in New Issue