steamutils 1.1.45 → 1.1.46
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1516,14 +1516,14 @@ class SteamUser {
|
|
1516
1516
|
|
1517
1517
|
let now = 0
|
1518
1518
|
let diff = 0
|
1519
|
-
while ((diff = (now = new Date().getTime()) - requestTimestamp) < 500) {
|
1520
|
-
await sleep(diff + 10)
|
1521
|
-
}
|
1522
1519
|
if (checkTooManyRequest) {
|
1523
1520
|
while ((diff = (now = new Date().getTime()) - tooManyRequestTimestamp) < 30000) {
|
1524
1521
|
await sleep(diff + 10)
|
1525
1522
|
}
|
1526
1523
|
}
|
1524
|
+
while ((diff = (now = new Date().getTime()) - requestTimestamp) < 500) {
|
1525
|
+
await sleep(diff + 10)
|
1526
|
+
}
|
1527
1527
|
requestTimestamp = now
|
1528
1528
|
response = await axios.request(config)
|
1529
1529
|
|