Skip to content

Commit

Permalink
send_packet_blocking recursion detection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gioblu committed May 12, 2018
1 parent 9ce403a commit 220402d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PJON.h
Expand Up @@ -821,7 +821,10 @@ class PJON {
header, header,
p_id, p_id,
requested_port requested_port
))) return PJON_FAIL; ))) {
_recursion--;
return PJON_FAIL;
}
state = send_packet((char*)data, length); state = send_packet((char*)data, length);
if(state == PJON_ACK) { if(state == PJON_ACK) {
_recursion--; _recursion--;
Expand Down

0 comments on commit 220402d

Please sign in to comment.