소스 검색

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 12 년 전
부모
커밋
d83b9aefd5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 }