summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen.c')
-rw-r--r--trafgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trafgen.c b/trafgen.c
index ba0b96b..e502fff 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -564,8 +564,8 @@ retry:
sched_yield();
goto retry;
}
-
- panic("Sendto error: %s!\n", strerror(errno));
+ if (ctx->smoke_test)
+ panic("Sendto error: %s!\n", strerror(errno));
}
tx_bytes += packets[i].len;