1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00

Updated sleep to exit execution when the script has been stopped

This commit is contained in:
boxgaming 2024-02-01 17:45:36 -06:00
parent 9d367351f3
commit b169ba7b86

1
qb.js
View file

@ -3070,6 +3070,7 @@ var QB = new function() {
while (!_lastKey && elapsed < totalWait) {
await GX.sleep(100);
elapsed += 100;
if (_haltedFlag) { return; }
}
};