steamutils 1.4.75 → 1.4.76
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +13 -12
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -109,6 +109,9 @@ function SteamClient({ username, cookie, clientJsToken, isAutoRequestFreeLicense
|
|
109
109
|
let _cleanNodeSteamLicensesTimeout = null;
|
110
110
|
let _cleanNodeSteamFriendTimeout = null;
|
111
111
|
|
112
|
+
let _appLaunchedTimeout = null;
|
113
|
+
let _appQuitTimeout = null;
|
114
|
+
|
112
115
|
let _clientWelcome = null;
|
113
116
|
let _clientHello = null;
|
114
117
|
|
@@ -1693,12 +1696,14 @@ function SteamClient({ username, cookie, clientJsToken, isAutoRequestFreeLicense
|
|
1693
1696
|
callEvent(events.emailInfo, { address, validated });
|
1694
1697
|
},
|
1695
1698
|
async appLaunched() {
|
1696
|
-
|
1699
|
+
clearTimeout(_appLaunchedTimeout);
|
1700
|
+
_appLaunchedTimeout = setTimeout(function () {
|
1697
1701
|
state = getPlayingAppIds().length ? "InGame" : isInvisible ? "Invisible" : "Online";
|
1698
1702
|
}, 2000);
|
1699
1703
|
},
|
1700
1704
|
async appQuit() {
|
1701
|
-
|
1705
|
+
clearTimeout(_appQuitTimeout);
|
1706
|
+
_appQuitTimeout = setTimeout(function () {
|
1702
1707
|
state = getPlayingAppIds().length ? "InGame" : isInvisible ? "Invisible" : "Online";
|
1703
1708
|
}, 2000);
|
1704
1709
|
},
|
@@ -2154,15 +2159,11 @@ function SteamClient({ username, cookie, clientJsToken, isAutoRequestFreeLicense
|
|
2154
2159
|
callEvent(events.logOff);
|
2155
2160
|
events.logOff = [];
|
2156
2161
|
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
}
|
2163
|
-
if (_cleanNodeSteamFriendTimeout) {
|
2164
|
-
clearTimeout(_cleanNodeSteamFriendTimeout);
|
2165
|
-
}
|
2162
|
+
clearTimeout(_cleanNodeSteamUserTimeout);
|
2163
|
+
clearTimeout(_cleanNodeSteamLicensesTimeout);
|
2164
|
+
clearTimeout(_cleanNodeSteamFriendTimeout);
|
2165
|
+
clearTimeout(_appLaunchedTimeout);
|
2166
|
+
clearTimeout(_appQuitTimeout);
|
2166
2167
|
|
2167
2168
|
if (steamClient) {
|
2168
2169
|
steamClient.logOff();
|
@@ -2660,7 +2661,7 @@ function SteamClient({ username, cookie, clientJsToken, isAutoRequestFreeLicense
|
|
2660
2661
|
}
|
2661
2662
|
|
2662
2663
|
function getPlayingAppIds() {
|
2663
|
-
return steamClient
|
2664
|
+
return steamClient?._playingAppIds || [];
|
2664
2665
|
}
|
2665
2666
|
|
2666
2667
|
async function requestJoinFriendData(token, version) {
|