There seemed to be a race condition
This commit is contained in:
parent
db0e2a5f89
commit
cfb312d6cd
@ -395,11 +395,11 @@ void phone_code_enter(Phone * phone)
|
|||||||
{
|
{
|
||||||
case PHONE_CODE_SIM_PIN:
|
case PHONE_CODE_SIM_PIN:
|
||||||
p = gtk_entry_get_text(GTK_ENTRY(phone->en_entry));
|
p = gtk_entry_get_text(GTK_ENTRY(phone->en_entry));
|
||||||
gsm_enter_sim_pin(phone->gsm, p);
|
|
||||||
phone->en_progress = _phone_create_progress(
|
phone->en_progress = _phone_create_progress(
|
||||||
phone->en_window,
|
phone->en_window,
|
||||||
_("Checking SIM PIN code..."));
|
_("Checking SIM PIN code..."));
|
||||||
_phone_track(phone, PHONE_TRACK_CODE_ENTERED, TRUE);
|
_phone_track(phone, PHONE_TRACK_CODE_ENTERED, TRUE);
|
||||||
|
gsm_enter_sim_pin(phone->gsm, p);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1456,11 +1456,11 @@ void phone_write_send(Phone * phone)
|
|||||||
FALSE);
|
FALSE);
|
||||||
if(number == NULL || number[0] == '\0' || text == NULL)
|
if(number == NULL || number[0] == '\0' || text == NULL)
|
||||||
return;
|
return;
|
||||||
gsm_send_message(phone->gsm, number, text);
|
|
||||||
g_free(text);
|
|
||||||
phone->wr_progress = _phone_create_progress(phone->wr_window,
|
phone->wr_progress = _phone_create_progress(phone->wr_window,
|
||||||
_("Sending message..."));
|
_("Sending message..."));
|
||||||
_phone_track(phone, PHONE_TRACK_MESSAGE_SENT, TRUE);
|
_phone_track(phone, PHONE_TRACK_MESSAGE_SENT, TRUE);
|
||||||
|
gsm_send_message(phone->gsm, number, text);
|
||||||
|
g_free(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user