steamutils 1.2.12 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- package/.idea/steamutils.iml +1 -1
- package/.idea/vcs.xml +1 -1
- package/SteamClient.js +4 -5
- package/package.json +1 -1
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
package/.idea/steamutils.iml
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
<module type="WEB_MODULE" version="4">
|
3
3
|
<component name="NewModuleRootManager">
|
4
4
|
<content url="file://$MODULE_DIR$">
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
6
5
|
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
7
7
|
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
8
8
|
</content>
|
9
9
|
<orderEntry type="inheritedJdk" />
|
package/.idea/vcs.xml
CHANGED
package/SteamClient.js
CHANGED
@@ -392,25 +392,24 @@ function SteamClient({
|
|
392
392
|
const isSuccess = await login(true)
|
393
393
|
if (isSuccess) {
|
394
394
|
const loggedOnResponse = await new Promise(resolve => {
|
395
|
-
onEvent('loggedOn',
|
396
|
-
resolve(loggedOnResponse)
|
397
|
-
}, true, 120000)
|
395
|
+
onEvent('loggedOn', resolve, true, 180000)
|
398
396
|
})
|
399
397
|
if (loggedOnResponse) {
|
400
398
|
console.log("Relogin success")
|
401
399
|
return true
|
402
400
|
} else {
|
401
|
+
await sleep(120000)
|
403
402
|
return await relogin(retry - 1)
|
404
403
|
}
|
405
404
|
} else {
|
406
|
-
await sleep(
|
405
|
+
await sleep(120000)
|
407
406
|
return await relogin(retry - 1)
|
408
407
|
}
|
409
408
|
}
|
410
409
|
}
|
411
410
|
|
412
411
|
await sleep(60000)
|
413
|
-
const isSuccess = await relogin(
|
412
|
+
const isSuccess = await relogin(20)
|
414
413
|
if (!isSuccess) {
|
415
414
|
doClearIntervals()
|
416
415
|
}
|
package/package.json
CHANGED