Jump to content
McKay Development

Logons over lapping


TheMaster

Recommended Posts

ummm i have a problem idk y this is happening  can anyone diagnose? the below is the only connection logic

    client.logOn(logOnOptions);
 
    client.on('loggedOn', function() {
        console.log(green,`Logged into Steam ${accname}`);
    });
   
    setInterval(() => {
        if (!client.steamID) {
            client.logOn(logOnOptions);
        }
    },600000); // 10 mins 600000
    setInterval(() => {
        if (!client.steamID) {
            client.logOn(logOnOptions);
        }else{
        client.webLogOn();
        }
    },3600000); // 1 hour 3600000


C:\New folder\node_modules\steam-user\components\09-logon.js:49
                let alreadyConnectingError = new Error('Already attempting to log on, cannot log on again');
                                             ^

Error: Already attempting to log on, cannot log on again
    at SteamUser.logOn (C:\New folder\node_modules\steam-user\components\09-logon.js:49:32)
    at Timeout._onTimeout (C:\New folder\mainimprovements.js:788:20)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)

Node.js v21.7.1

Edited by TheMaster
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...