Module: sip-router
Branch: 4.0
Commit: 5591cce6007b6d770fbf7e10309caa3593798684
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5591cce6007b6d770fbf7e10309caa3593798684

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date:   Mon Mar  4 16:30:34 2013 +0100

dispatcher: release lock instead of destroy when cleaning active calls hash 
table

- this could happen when dispatcher list was reloaded
- reported and fix by Dmitry, closes FS#275
(cherry picked from commit d83b9aefd5afa25b2d18a8bf92357fbd33d627bf)

---

 modules/dispatcher/ds_ht.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/dispatcher/ds_ht.c b/modules/dispatcher/ds_ht.c
index 13cff0d..eddc9f0 100644
--- a/modules/dispatcher/ds_ht.c
+++ b/modules/dispatcher/ds_ht.c
@@ -170,7 +170,7 @@ int ds_ht_clear_slots(ds_ht_t *dsht)
                }
                dsht->entries[i].first = NULL;
                dsht->entries[i].esize = 0;
-               lock_destroy(&dsht->entries[i].lock);
+               lock_release(&dsht->entries[i].lock);
        }
        return 0;
 }


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to