From 33460064ac31b270287769373a9d386666a8e3d7 Mon Sep 17 00:00:00 2001 From: Raymond Chandler Date: Thu, 1 May 2014 17:34:54 -0400 Subject: [PATCH] CID: 1210739 --- src/mod/applications/mod_nibblebill/mod_nibblebill.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_nibblebill/mod_nibblebill.c b/src/mod/applications/mod_nibblebill/mod_nibblebill.c index 8149f040e2..39a799c1ec 100644 --- a/src/mod/applications/mod_nibblebill/mod_nibblebill.c +++ b/src/mod/applications/mod_nibblebill/mod_nibblebill.c @@ -680,7 +680,7 @@ static void nibblebill_pause(switch_core_session_t *session) if (!nibble_data) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Can't pause - channel is not initialized for billing!\n"); - return; + goto end; } /* Set pause counter if not already set */ @@ -689,6 +689,7 @@ static void nibblebill_pause(switch_core_session_t *session) switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_INFO, "Paused billing timestamp!\n"); + end: /* Done checking - release lock */ if (globals.mutex) { switch_mutex_unlock(globals.mutex);