From bb102fb082ba7c58a2a07a67ae31adfedcdaf2c0 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sun, 1 Jan 2023 21:11:19 +0000 Subject: [PATCH] Fix the infinite recursion on network traffic handling. --- M17Control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/M17Control.cpp b/M17Control.cpp index eee7c83..9beff31 100644 --- a/M17Control.cpp +++ b/M17Control.cpp @@ -970,7 +970,7 @@ void CM17Control::writeJSON(const char* action, RPT_NET_STATE state, const std:: nlohmann::json json; - writeJSON(action, state, source, dest); + writeJSON(json, action, state, source, dest); WriteJSON("M17", json); } @@ -981,7 +981,7 @@ void CM17Control::writeJSON(const char* action, RPT_NET_STATE state, const std:: nlohmann::json json; - writeJSON(action, state, source, dest); + writeJSON(json, action, state, source, dest); json["duration"] = duration;