From 5d541b08caa3e9b348f11235ef72e7cb512b4d49 Mon Sep 17 00:00:00 2001 From: sean Date: Sun, 5 Aug 2012 18:23:10 +0000 Subject: [PATCH] Fixed the race condition where nping would print out an error after running. I removed the call to create a time since we don't really need a timer there. --- nping/ProbeMode.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/nping/ProbeMode.cc b/nping/ProbeMode.cc index 760d402be..b069ad3d2 100644 --- a/nping/ProbeMode.cc +++ b/nping/ProbeMode.cc @@ -472,7 +472,6 @@ int ProbeMode::start(){ o.stats.stopTxClock(); if(!o.disablePacketCapture()){ nsock_pcap_read_packet(nsp, pcap_nsi, nping_event_handler, DEFAULT_WAIT_AFTER_PROBES, NULL); - nsock_timer_create(nsp, nping_event_handler, DEFAULT_WAIT_AFTER_PROBES,NULL); loopret=nsock_loop(nsp, DEFAULT_WAIT_AFTER_PROBES); if (loopret == NSOCK_LOOP_ERROR) outFatal(QT_3, "Unexpected nsock_loop error.\n");