From 4576547c208d6df6e35d6409570d8e741583008e Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 6 Apr 2023 12:01:35 +0200 Subject: [PATCH] sip-origin: Prefer named constant over magic numbers --- plugins/provider/sip/calls-sip-origin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/provider/sip/calls-sip-origin.c b/plugins/provider/sip/calls-sip-origin.c index 4f93ddb..28de518 100644 --- a/plugins/provider/sip/calls-sip-origin.c +++ b/plugins/provider/sip/calls-sip-origin.c @@ -22,6 +22,7 @@ * */ +#define WAIT_FOR_SHUTDOWN_MS 100 #define WAIT_FOR_OFFLINE_MS 100 #define WAIT_FOR_OFFLINE_RETRIES 5 @@ -1241,7 +1242,7 @@ deinit_sip_account (CallsSipOrigin *self) nua_shutdown (self->nua); // need to wait for nua_r_shutdown event before calling nua_destroy () while (!self->is_nua_shutdown) - su_root_step (self->ctx->root, 100); + su_root_step (self->ctx->root, WAIT_FOR_SHUTDOWN_MS); if (!self->is_shutdown_success) { g_warning ("nua_shutdown() timed out. Cannot proceed");