FAForever / server

The servercode for the Forged Alliance Forever lobby

Home Page:http://www.faforever.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection is closed if two login messages are sent to the same connection

Askaholic opened this issue · comments

The logic for detecting that you are already signed in will send a kick message even if the second login request is coming from the exact same connection as the first. I'm not sure if this is really desired. I could see a few potential ways of handling this.

  1. Continue as normal, recreate the player object and resend all of the *_info messages.
  2. Continue as normal, but update the existing player object with the new username rather than recreating the object.
  3. Ignore the request and do nothing