OczkoSX Posted January 2, 2017 Report Share Posted January 2, 2017 Im connected with steam. I want to log off, and then log in. How Can I do it? I've tried doing Client.logOff(), Client.logOn(details); but it returns that im already logged. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 2, 2017 Report Share Posted January 2, 2017 Why do you want to reconnect? I don't see any reason you'd want to do this. If you need to renew your web session, just use webLogOn. That said, you can reconnect. To do that, you need to wait for the disconnected event to fire before you try to log on again. Quote Link to comment Share on other sites More sharing options...
OczkoSX Posted January 3, 2017 Author Report Share Posted January 3, 2017 I don't really now to be honest. I've just thought that it will be good feature when something went wrong. Should I declare global variable with a Boolean value, set it as true in reconnect function, and read whether it is true on disconnect event and then log? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 3, 2017 Report Share Posted January 3, 2017 That's probably a good way to do it, yeah. But for the record, I really think that it's useless to do this. I've never had a problem be solved with a complete reconnect. Quote Link to comment Share on other sites More sharing options...
OczkoSX Posted January 4, 2017 Author Report Share Posted January 4, 2017 I won't do that then. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.