mojira.dev
MC-307765

ServerCommonPacketListenerImpl#disconnect incorrectly calls handleDisconnection

The call to Connection#handleDisconnection in ServerCommonPacketListenerImpl does nothing, it is not guaranteed the connection will be killed at this point. Because disconnect is called from the main thread, it will run right away.

Because of the fact that this is not blocking, unlike MC-307764, it is possible for the player connection to be ticked multiple times before disconnection is handled.

A solution could be similar to the one mentioned in the bug report.

Comments 0

No comments.

Owen1212055

(Unassigned)

Unconfirmed

(Unassigned)

26.1.2

Retrieved