rhymu8354 / OmniaRegna

This holds public information about OmniaRegna (https://omniaregna.com/), an online RPG. Issues for the game may be reported here or in the game itself.
8 stars 1 forks source link

Logging out causes two LogOut commands to be queued instead of one #258

Closed rhymu8354 closed 4 years ago

rhymu8354 commented 4 years ago

Example:

{"command":{"clearToken":true,"clientId":39,"playerId":1,"serverId":11},"term":2771,"type":"LogOut"}
{"command":{"clearToken":false,"clientId":39,"playerId":0,"serverId":11},"term":2771,"type":"LogOut"}

In this case, the leader was server 11, which is the same server to which the client was connected.

rhymu8354 commented 4 years ago

This was caused by appending LogOut or issuing a CurrentPlayers message to the leader for a disconnected client even if that client was not logged in.