Use 3 read attempts when in non-blocking mode

This commit is contained in:
Marcel Holtmann 2010-01-28 22:24:04 +01:00
parent 7d7a61f933
commit 4f3b99e189
1 changed files with 1 additions and 1 deletions

View File

@ -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;