From 44b7b4e1db1a634925dc4f49eca124dc36230269 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 8 Sep 2014 04:44:04 +0200 Subject: [PATCH] Avoid potentially losing the ID for a source --- src/modems/hayes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modems/hayes.c b/src/modems/hayes.c index 0e8b92c..a12e339 100644 --- a/src/modems/hayes.c +++ b/src/modems/hayes.c @@ -2182,9 +2182,9 @@ static gboolean _on_watch_can_read(GIOChannel * source, GIOCondition condition, /* fallback */ case G_IO_STATUS_EOF: default: /* should not happen... */ + channel->rd_source = 0; if(hayes->retry > 0) _hayes_reset(hayes); - channel->rd_source = 0; return FALSE; } switch(channel->mode)