Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/hostmon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/hostmon.c b/src/hostmon.c
index 5856389..aa769ef 100644
--- a/src/hostmon.c
+++ b/src/hostmon.c
@@ -981,7 +981,7 @@ void hostmon(time_t facilitytime, char *ifptr)
if (logging)
log_next = now.tv_sec + options.logspan;
- do {
+ while (!exitloop) {
gettimeofday(&now, NULL);
if (now.tv_sec > last_time.tv_sec) {
@@ -1027,7 +1027,7 @@ void hostmon(time_t facilitytime, char *ifptr)
if (pkt.pkt_len > 0)
hostmon_process_packet(&table, &pkt, ifptr);
- } while (!exitloop);
+ }
packet_destroy(&pkt);
--
1.9.1