The GSM class now needs an explicit reset (allows plug-ins to load first)
This commit is contained in:
parent
1f7b94f027
commit
8590ced368
@ -380,7 +380,6 @@ GSM * gsm_new(char const * device, unsigned int baudrate, unsigned int hwflow)
|
|||||||
gsm_delete(gsm);
|
gsm_delete(gsm);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
gsm_reset(gsm, 0);
|
|
||||||
return gsm;
|
return gsm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -370,6 +370,7 @@ static gboolean _new_idle(gpointer data)
|
|||||||
if((plugins = config_get(phone->config, NULL, "plugins")) != NULL)
|
if((plugins = config_get(phone->config, NULL, "plugins")) != NULL)
|
||||||
_idle_load_plugins(phone, plugins);
|
_idle_load_plugins(phone, plugins);
|
||||||
phone->source = 0;
|
phone->source = 0;
|
||||||
|
gsm_reset(phone->gsm, 0);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user