account for SendHandler in deInit call
This commit is contained in:
@@ -76,6 +76,11 @@ switch (_function) do {
|
||||
} forEach RangerMetrics_allServerPoll;
|
||||
};
|
||||
|
||||
if (!isNil "RangerMetrics_sendHandler") then {
|
||||
[RangerMetrics_sendHandler] call CBA_fnc_removePerFrameHandler;
|
||||
missionNamespace setVariable ["RangerMetrics_sendHandler", nil];
|
||||
};
|
||||
|
||||
if (
|
||||
missionNamespace getVariable [
|
||||
"RangerMetrics_run",
|
||||
|
||||
@@ -102,7 +102,7 @@ missionNamespace setVariable ["RangerMetrics_run", true, true];
|
||||
|
||||
|
||||
// start sending
|
||||
[{
|
||||
RangerMetrics_sendHandler = [{
|
||||
params ["_args", "_idPFH"];
|
||||
if !(
|
||||
missionNamespace getVariable [
|
||||
|
||||
Reference in New Issue
Block a user