Fix: reconnecting from an exception handler does not work.

This commit is contained in:
joo committed 2018-05-29 01:14:23 +01:00
1 parent c01f194d06
commit d36b652b69
2 files changed
+76 -40

No files matched your search

+7
View File
@@ -69,6 +69,13 @@ class LoginDisconnect(ConnectionFailure):
"""
class InvalidState(ConnectionFailure):
"""Raised by 'minecraft.networking.Connection' when a connection attempt
fails due to to the internal state of the Connection being unsuitable,
for example if there is an existing ongoing connection.
"""
class IgnorePacket(Exception):
"""This exception may be raised from within a packet handler, such as
`PacketReactor.react' or a packet listener added with