mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
sip: origin: Bail when trying to go online but nua handle is not present
This fixes a segmentation fault.
This commit is contained in:
parent
b8f628740a
commit
5371debc57
1 changed files with 6 additions and 0 deletions
|
@ -888,6 +888,12 @@ go_online (CallsAccount *account,
|
|||
|
||||
self = CALLS_SIP_ORIGIN (account);
|
||||
|
||||
if (!self->nua) {
|
||||
g_warning ("Cannot go online: nua handle not initialized");
|
||||
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_ACC_STATE]);
|
||||
return;
|
||||
}
|
||||
|
||||
if (online) {
|
||||
g_autofree char *registrar_url = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue