diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-01-14 10:25:14 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-01-14 10:26:12 -0600 |
commit | aec5b8a44fa2fbece87441656eaf7ffb9a53fc6e (patch) | |
tree | d30e3dca974be1b1587a1f0ec6bb7ce5b721c64f /gatchat/gatchat.c | |
parent | 8fe8220b236a68cb1ce4904c2549fecbd0417226 (diff) | |
download | ofono-aec5b8a44fa2fbece87441656eaf7ffb9a53fc6e.tar.gz |
Fix: Make remote disconnect detection work
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r-- | gatchat/gatchat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index ea17335e..8af927ed 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -801,7 +801,7 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond, if (cond & (G_IO_HUP | G_IO_ERR)) return FALSE; - if (err != G_IO_ERROR_NONE && err != G_IO_ERROR_AGAIN) + if (rbytes == 0 && err != G_IO_ERROR_AGAIN) return FALSE; return TRUE; |