You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client.logOff() not working after calling client.getProductInfo(), not going back to bash after running node index.js
Versions
4.19.2 and 14.4.0 of Node
Code example
constSteamUser=require('steam-user');constgetAppInfo=(appId)=>newPromise((res,rej)=>{varclient=newSteamUser();client.on('loggedOn',async()=>{constgameData=awaitclient.getProductInfo([appId],[])constgameInfo=gameData?.apps?.[`${appId}`]?.appinfo;console.log("Logging off of Steam");client.logOff();res(gameInfo);});client.logOn();});getAppInfo(730).then(()=>console.log("done"));
The Promise is resolved, but session is still going, meaning after running node index.js it will not go back to bash.
This example however logs off properly and imidiately:
constSteamUser=require('steam-user');constgetAppInfo=(appId)=>newPromise((res,rej)=>{varclient=newSteamUser();client.on('loggedOn',async()=>{console.log("Logging off of Steam");client.logOff();res(null);});client.logOn();});getAppInfo(730).then(()=>console.log("done"));
client._disconnect(true) also doesn't work
The text was updated successfully, but these errors were encountered:
Describe the bug
client.logOff() not working after calling client.getProductInfo(), not going back to bash after running
node index.js
Versions
4.19.2 and 14.4.0 of Node
Code example
The Promise is resolved, but session is still going, meaning after running
node index.js
it will not go back to bash.This example however logs off properly and imidiately:
client._disconnect(true)
also doesn't workThe text was updated successfully, but these errors were encountered: