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:
@@ -323,7 +323,10 @@ update_nua (CallsSipOrigin *self)
|
|||||||
g_autofree char *from_str = NULL;
|
g_autofree char *from_str = NULL;
|
||||||
|
|
||||||
g_assert (CALLS_IS_SIP_ORIGIN (self));
|
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);
|
self->protocol_prefix = get_protocol_prefix (self->transport_protocol);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user