fix AttributeError: 'Packet' object has no attribute 'name' (should be 'packet_name' - see https://github.com/ammaraskar/pyCraft/blob/master/minecraft/networking/packets/packet.py#L9)
This commit is contained in:
1 parent
ece90fcd9d
commit
5c0c95068f
1 file changed
+1
-1
@@ -433,7 +433,7 @@ class NetworkingThread(threading.Thread):
|
|||||||
# Ignore the earlier exception if a disconnect packet is
|
# Ignore the earlier exception if a disconnect packet is
|
||||||
# received, as it may have been caused by trying to write to
|
# received, as it may have been caused by trying to write to
|
||||||
# thw closed socket, which does not represent a program error.
|
# thw closed socket, which does not represent a program error.
|
||||||
if exc_info is not None and packet.name == 'disconnect':
|
if exc_info is not None and packet.packet_name == "disconnect":
|
||||||
exc_info = None
|
exc_info = None
|
||||||
|
|
||||||
if exc_info is not None:
|
if exc_info is not None:
|
||||||
|
|||||||
Reference in new issue
Block a user