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