From d723fd72696905660e4a854327c43cd13a6bd5f1 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 13 Aug 2009 11:02:25 +0200 Subject: [PATCH] wme_test: fixed termination under FRSH --- wme_test/wclient.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wme_test/wclient.c b/wme_test/wclient.c index 592e5f5..8c1585b 100644 --- a/wme_test/wclient.c +++ b/wme_test/wclient.c @@ -1192,6 +1192,10 @@ int main(int argc, char *argv[]) } end_gui(); + + fprintf(stderr, "\nWaiting for threads to finish\n"); + wait_for_all_threads_to_finish(); + #ifdef WITH_FWP for (i=0; i < nr_streams; i++) { if (streams[i].vres) @@ -1201,9 +1205,6 @@ int main(int argc, char *argv[]) } #endif - fprintf(stderr, "\nWaiting for threads to finish\n"); - wait_for_all_threads_to_finish(); - struct timespec ts; uint64_t end_timestamp, measure_length; clock_gettime(CLOCK_REALTIME,&ts); -- 2.39.2