mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 08:45:48 +08:00
Fix the infinite recursion on network traffic handling.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user