From 220402dcbc6094feee5d7e8f9a59567f0a974ea2 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 12 May 2018 15:11:40 +0200 Subject: [PATCH] send_packet_blocking recursion detection fix --- src/PJON.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PJON.h b/src/PJON.h index 7f4ec65f4d..8ad752e0ad 100644 --- a/src/PJON.h +++ b/src/PJON.h @@ -821,7 +821,10 @@ class PJON { header, p_id, requested_port - ))) return PJON_FAIL; + ))) { + _recursion--; + return PJON_FAIL; + } state = send_packet((char*)data, length); if(state == PJON_ACK) { _recursion--;