1
0
Fork 0
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:
Evangelos Ribeiro Tzaras 2021-08-31 07:51:50 +02:00
parent 16897eebe6
commit 2df221c94c

View file

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