summaryrefslogtreecommitdiffstats
path: root/tests/tcpflood.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcpflood.c')
-rw-r--r--tests/tcpflood.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c
index 179bbda5..a17c5fbb 100644
--- a/tests/tcpflood.c
+++ b/tests/tcpflood.c
@@ -480,15 +480,16 @@ prepareGenerators()
if(runMultithreaded) {
bSilent = 1;
numThrds = numConnections;
- runningThreads = 0;
- doRun = 0;
- pthread_mutex_init(&thrdMgmt, NULL);
- pthread_cond_init(&condStarted, NULL);
- pthread_cond_init(&condDoRun, NULL);
} else {
numThrds = 1;
}
+ runningThreads = 0;
+ doRun = 0;
+ pthread_mutex_init(&thrdMgmt, NULL);
+ pthread_cond_init(&condStarted, NULL);
+ pthread_cond_init(&condDoRun, NULL);
+
if(instarray != NULL) {
free(instarray);
}