Avoid potentially losing the ID for a source
This commit is contained in:
parent
e15bc48347
commit
44b7b4e1db
@ -2182,9 +2182,9 @@ static gboolean _on_watch_can_read(GIOChannel * source, GIOCondition condition,
|
|||||||
/* fallback */
|
/* fallback */
|
||||||
case G_IO_STATUS_EOF:
|
case G_IO_STATUS_EOF:
|
||||||
default: /* should not happen... */
|
default: /* should not happen... */
|
||||||
|
channel->rd_source = 0;
|
||||||
if(hayes->retry > 0)
|
if(hayes->retry > 0)
|
||||||
_hayes_reset(hayes);
|
_hayes_reset(hayes);
|
||||||
channel->rd_source = 0;
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
switch(channel->mode)
|
switch(channel->mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user