mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical - Prevent running FUNC(deserializeState)
in scheduled environment (#9662)
Run deserializeState in unscheduled
This commit is contained in:
parent
1b86f909e8
commit
892671c770
@ -17,6 +17,11 @@
|
|||||||
*/
|
*/
|
||||||
params [["_unit", objNull, [objNull]], ["_json", "{}", [""]]];
|
params [["_unit", objNull, [objNull]], ["_json", "{}", [""]]];
|
||||||
|
|
||||||
|
// Don't run in scheduled environment
|
||||||
|
if (canSuspend) exitWith {
|
||||||
|
[FUNC(deserializeState), _this] call CBA_fnc_directCall
|
||||||
|
};
|
||||||
|
|
||||||
if (isNull _unit) exitWith {};
|
if (isNull _unit) exitWith {};
|
||||||
if (!local _unit) exitWith { ERROR_1("unit [%1] is not local",_unit) };
|
if (!local _unit) exitWith { ERROR_1("unit [%1] is not local",_unit) };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user