No longer potentially forget about an event source when starting the modem
This commit is contained in:
parent
562396f94a
commit
47416ac7a3
@ -609,6 +609,8 @@ static int _hayes_request(Hayes * hayes, ModemRequest * request)
|
|||||||
static int _hayes_start(Hayes * hayes, unsigned int retry)
|
static int _hayes_start(Hayes * hayes, unsigned int retry)
|
||||||
{
|
{
|
||||||
hayes->retry = retry;
|
hayes->retry = retry;
|
||||||
|
if(hayes->source != 0)
|
||||||
|
g_source_remove(hayes->source);
|
||||||
hayes->source = g_idle_add(_on_reset, &hayes->channel);
|
hayes->source = g_idle_add(_on_reset, &hayes->channel);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user