Christian-Stieber / Christians-Steam-Framework

My C++ framework for doing Steam stuff.
GNU General Public License v3.0
4 stars 1 forks source link

Login crash on 2FA "timeout" #26

Closed Christian-Stieber closed 5 months ago

Christian-Stieber commented 5 months ago

There appears to be a timeout and crash if you need "too long" to enter the 2FA code:

... [2024-06-07 10:54:09]: Please enter account password: ...
... [2024-06-07 10:54:18]: obtaining login key
... [2024-06-07 10:54:19]: Please enter steamguard-code (email): ChristiansSteamBot: /home/stieber/Christians-Steam-Bot/Christians-Steam-Framework/Sources/Client/Client.cpp:163: static void SteamBot::Client::launch(SteamBot::ClientInfo&)::Launcher::launch(SteamBot::ClientInfo&): Assertion `clientInfo.isActive()' failed.
Aborted
Christian-Stieber commented 5 months ago

Well, turned out it wasn't a timeout at all -- I was declaring the client to be "inactive" after a restart, so if the restart triggered another restart (like for TryAnotherCM)... Might also have caused issues elsewhere in case we check "isActive".

https://github.com/Christian-Stieber/Christians-Steam-Framework/commit/f484f9a6a8264625e7eb5334f08245b6e6f5bc69