summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-28 22:24:04 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-01-28 22:24:04 +0100
commit4f3b99e189ec925fa0816b49f4a4bbfa999dfddf (patch)
treee51588cbce65864e00a1fb9017ae688f4e2f3ccc /gatchat/gatchat.c
parent7d7a61f9333fd65f90531f72dcf4bb456ab87ea6 (diff)
downloadofono-4f3b99e189ec925fa0816b49f4a4bbfa999dfddf.tar.bz2
Use 3 read attempts when in non-blocking mode
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r--gatchat/gatchat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index dc33beba..5dbd2832 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -916,7 +916,7 @@ static GAtChat *create_chat(GIOChannel *channel, GIOFlags flags,
if (flags & G_IO_FLAG_NONBLOCK) {
chat->use_write_watch = TRUE;
- chat->max_read_attempts = 1;
+ chat->max_read_attempts = 3;
} else {
chat->use_write_watch = FALSE;
chat->max_read_attempts = 1;