account for SendHandler in deInit call
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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 [
|
||||||
|
|||||||
Reference in New Issue
Block a user