allow full turn off with RangerMetrics_runs false and deinit extension
This commit is contained in:
@@ -76,8 +76,15 @@ switch (_function) do {
|
||||
} forEach RangerMetrics_allServerPoll;
|
||||
};
|
||||
|
||||
if (
|
||||
missionNamespace getVariable [
|
||||
"RangerMetrics_run",
|
||||
false
|
||||
]
|
||||
) then {
|
||||
call RangerMetrics_fnc_initCapture;
|
||||
};
|
||||
};
|
||||
default {
|
||||
_response call RangerMetrics_fnc_log;
|
||||
};
|
||||
|
||||
@@ -104,6 +104,12 @@ missionNamespace setVariable ["RangerMetrics_run", true, true];
|
||||
// start sending
|
||||
[{
|
||||
params ["_args", "_idPFH"];
|
||||
if !(
|
||||
missionNamespace getVariable [
|
||||
"RangerMetrics_run",
|
||||
false
|
||||
]
|
||||
) exitWith {};
|
||||
if (scriptDone RangerMetrics_sendBatchHandle) then {
|
||||
RangerMetrics_sendBatchHandle = [] spawn RangerMetrics_fnc_send;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user