1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-07 12:25:31 +00:00

sip-origin: Prefer named constant over magic numbers

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-04-06 12:01:35 +02:00
parent 5362d1c975
commit 4576547c20

View file

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