Explorar o código

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
Daniel-Constantin Mierla %!s(int64=12) %!d(string=hai) anos
pai
achega
d83b9aefd5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/dispatcher/ds_ht.c

+ 1 - 1
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;
 }