aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/pcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/pcap.c')
-rw-r--r--src/vppinfra/pcap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vppinfra/pcap.c b/src/vppinfra/pcap.c
index 8f644e30f1d..0ca923e81cf 100644
--- a/src/vppinfra/pcap.c
+++ b/src/vppinfra/pcap.c
@@ -157,9 +157,6 @@ pcap_write (pcap_main_t * pm)
pm->n_pcap_data_written = 0;
}
- if (pm->n_packets_captured >= pm->n_packets_to_capture)
- pcap_close (pm);
-
done:
if (error)
{