mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
sip: origin: Warn instead of asserting in update_nua() on nua stack
Crashing the application is overkill in this case.
This commit is contained in:
parent
16897eebe6
commit
2df221c94c
1 changed files with 4 additions and 1 deletions
|
@ -323,7 +323,10 @@ update_nua (CallsSipOrigin *self)
|
|||
g_autofree char *from_str = NULL;
|
||||
|
||||
g_assert (CALLS_IS_SIP_ORIGIN (self));
|
||||
g_assert (self->nua);
|
||||
if (!self->nua) {
|
||||
g_warning ("Cannot update nua stack, aborting");
|
||||
return;
|
||||
}
|
||||
|
||||
self->protocol_prefix = get_protocol_prefix (self->transport_protocol);
|
||||
|
||||
|
|
Loading…
Reference in a new issue