projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc6a43c
)
gatchat: Check for disconnection when resuming
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 8 Jun 2010 00:32:26 +0000
(19:32 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 8 Jun 2010 00:32:26 +0000
(19:32 -0500)
If the internal GAtIO is no longer valid, treat it as if our channel was
disconnected.
gatchat/gatchat.c
patch
|
blob
|
history
diff --git
a/gatchat/gatchat.c
b/gatchat/gatchat.c
index
9456f00
..
f192a90
100644
(file)
--- a/
gatchat/gatchat.c
+++ b/
gatchat/gatchat.c
@@
-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);