The GSM class now needs an explicit reset (allows plug-ins to load first)

This commit is contained in:
Pierre Pronchery 2010-08-02 04:51:50 +00:00
parent 1f7b94f027
commit 8590ced368
2 changed files with 1 additions and 1 deletions

View File

@ -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;
} }

View File

@ -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;
} }