account for SendHandler in deInit call

This commit is contained in:
2023-04-22 22:09:33 -07:00
parent 67310804dc
commit f4cdfe593d
2 changed files with 6 additions and 1 deletions

View File

@@ -76,6 +76,11 @@ switch (_function) do {
} forEach RangerMetrics_allServerPoll; } forEach RangerMetrics_allServerPoll;
}; };
if (!isNil "RangerMetrics_sendHandler") then {
[RangerMetrics_sendHandler] call CBA_fnc_removePerFrameHandler;
missionNamespace setVariable ["RangerMetrics_sendHandler", nil];
};
if ( if (
missionNamespace getVariable [ missionNamespace getVariable [
"RangerMetrics_run", "RangerMetrics_run",

View File

@@ -102,7 +102,7 @@ missionNamespace setVariable ["RangerMetrics_run", true, true];
// start sending // start sending
[{ RangerMetrics_sendHandler = [{
params ["_args", "_idPFH"]; params ["_args", "_idPFH"];
if !( if !(
missionNamespace getVariable [ missionNamespace getVariable [