Added fail callback UDP switch to turn of config on clientside

This commit is contained in:
Valmo Trindade
2025-06-25 13:10:15 -03:00
parent a1bf9472ae
commit 4ae35335e2

View File

@@ -22,10 +22,14 @@ addMissionEventHandler ["ExtensionCallback", {
}; };
case "UDP SOCKET ERROR": { case "UDP SOCKET ERROR": {
[_function, "error", _name] call FUNC(notify); [_function, "error", _name] call FUNC(notify);
if (_function == "UDP Socket is not running") then { if (_function == "UDP Socket is not running") then {
SETVAR(player,EGVAR(client,eudConnected),false); SETVAR(player,EGVAR(client,eudConnected),false);
}; };
if (_function == "failed to bind UDP socket") then {
SETVAR(player,EGVAR(client,eudConnected),false);
};
}; };
case "TCP SOCKET": { case "TCP SOCKET": {
[_function, "success", _name] call FUNC(notify); [_function, "success", _name] call FUNC(notify);