outlander-app / outlander-osx

Mac game client for DragonRealms
http://outlanderapp.com
MIT License
13 stars 8 forks source link

Loading a profile after a stale connection fails after authentication #125

Open eartsar opened 7 years ago

eartsar commented 7 years ago

When leaving Outlander open, and a connection to DragonRealms intact, suspending your computer will eventually leave your client in a stale connection state. Loading a profile after being in this state will authenticate properly, but immediately force-disconnect your character on the client side.

image

The gif only momentarily shows it, but DR did indeed register my last logoff shortly after suspending my computer. Ideally, the client should be able to realize that the connection was lost prior to authentication, and create a clean session accordingly.

eartsar commented 7 years ago

More clarification on the bug that may indicate where in the code to look:

Even failing authentication (ie - no password) will "clear out" the idle session, counting as that first authentication attempt.