global-functions: introduce $WaitTimeSync

This commit is contained in:
Christian Hesse 2020-02-24 11:36:36 +01:00
parent 2a80fd6dbe
commit 5fab77abad

View file

@ -36,6 +36,7 @@
:global ScriptInstallUpdate;
:global MailServerIsUp;
:global TimeIsSync;
:global WaitTimeSync;
# url encoding
:set UrlEncode do={
@ -474,3 +475,12 @@
:return false;
}
# wait for time to become synced
:set WaitTimeSync do={
:global TimeIsSync;
:while ([ $TimeIsSync ] = false) do={
:delay 1s;
}
}