Issue information

Issue ID
#1318
Status
Fixed
Severity
Medium
Started
Hercules Elf Bot
Apr 5, 2008 2:36
Last Post
Hercules Elf Bot
Apr 19, 2012 15:30
Confirmation
N/A

Hercules Elf Bot - Apr 5, 2008 2:36

Originally posted by [b]Kevin[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1318

There is a bug with setting users offline when a map server disconnects/crashes.

CODE
    } else if (character->server == server)
        character->server = -2; //In some map server that we aren't connected to.


This is a timer subroutine that is called when a map server disconnects (either disconnected or crashed). There is no way to tell if the map server just crashed or disconnected since both are unforeseeable occurrences.

My suggestion is to assume the character is offline, and if the map happens to reconnect after a DC (not a crash), it'll send a packet that says it was just a DC, and sends a new user count and the auth info for them.

Hercules Elf Bot - Jan 5, 2012 3:31

Originally posted by [b]Ind[/b]
was fixed in a previous eA revision (it does send them offline + free the data atm)