Why do you synchronise it anyway? Your whole player handeling should be single threaded. Also if you can't find the root cause of the problem you can just make it so when the connection is closed the player is logged out.
|
Firstly im not a good enough coder to fully understand how to fix/edit/rewrite my servers playerhandler class. One thing my server has a result of the bugged class is a dc issue for players
where they dc and cant log back into their account until someone kicks the account or it logs itself. Maybe someone can show me some glaring issues. I believe some proccess takes more than a tick long
resulting in the player trying to read something(idk im just guessing) thats already being used, so it kicks the player instead. I know theres some issues with the synchronized (lock) as well. Any help would
be great
Here's the code
https://hastebin.com/aboqibubod.cs
Why do you synchronise it anyway? Your whole player handeling should be single threaded. Also if you can't find the root cause of the problem you can just make it so when the connection is closed the player is logged out.
Is there any print out in the console whenever someone that got dc'd ang can't log back in?
What did the player do before it happend?
Can they close they restart the client to get back online?
There is no printout. Usually what i get though is, "player is sending invalid PacketType: x"
and then a java.lang.ArrayIndexOutOfBoundsException without anything else so i have no idea where it comes from.
Players can't turn off client to get back onto their character. The only way is if a staff member kicks them.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |