]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7734 fixed mutex lock that should be an unlock
authorAndrew Cassidy <andee@bytz.co.uk>
Sat, 27 Jun 2015 20:19:16 +0000 (21:19 +0100)
committerAndrew Cassidy <andee@bytz.co.uk>
Sat, 27 Jun 2015 20:30:17 +0000 (21:30 +0100)
src/mod/applications/mod_nibblebill/mod_nibblebill.c

index a06e0c8d94fedad2eb21579100a4785f87b0411e..f6d1b51ed9cce93fa4a27e0f801382ef3387108d 100644 (file)
@@ -550,7 +550,7 @@ static switch_status_t do_billing(switch_core_session_t *session)
        }
 
        if (nibble_data && nibble_data->final_bill_done) {
-               switch_mutex_lock(globals.mutex);
+               switch_mutex_unlock(globals.mutex);
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Received heartbeat, but final bill has been committed - ignoring\n");
                return SWITCH_STATUS_SUCCESS;
        }