diff options
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index 6b7066c38..652a4ee44 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -2356,13 +2356,14 @@ test_util_threads(void) } tor_mutex_release(_thread_test_mutex); } - tor_mutex_free(_thread_test_mutex); tor_mutex_acquire(_thread_test_start1); tor_mutex_release(_thread_test_start1); tor_mutex_acquire(_thread_test_start2); tor_mutex_release(_thread_test_start2); + tor_mutex_free(_thread_test_mutex); + if (timedout) { printf("\nTimed out: %d %d", t1_count, t2_count); test_assert(strmap_get(_thread_test_strmap, "thread 1")); |