global-functions: $WaitForFile: drop the first workaround

This reverts commit 8231c3e833.

Truned out this workaround was not sufficient, see the follow-up in
commit 191cc1b952 for details.

But possibly the second one does it on its own? Reverting this for
a test run.
This commit is contained in:
Christian Hesse 2024-12-30 20:22:51 +01:00
parent 191cc1b952
commit b98b245714

View file

@ -1591,16 +1591,6 @@
:delay $Delay;
:set I ($I + 1);
}
:local File [ /file/find where name=$FileName ];
:local SizeA 0;
:local SizeB 1;
:while ($SizeA < $SizeB) do={
:set SizeA $SizeB;
:delay $Delay;
:set SizeB [ /file/get $File size ];
}
:return true;
}