Avoid potentially losing the ID for a source

This commit is contained in:
Pierre Pronchery 2014-09-08 04:44:04 +02:00
parent e15bc48347
commit 44b7b4e1db

View File

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