Merge pull request #76 from TheSnoozer/packet-name-issue

fix AttributeError: 'Packet' object has no attribute 'name'
This commit is contained in:
joo 2018-01-21 17:40:24 +00:00 committed by GitHub
commit ae0a3b3989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,7 +433,7 @@ class NetworkingThread(threading.Thread):
# Ignore the earlier exception if a disconnect packet is
# received, as it may have been caused by trying to write to
# 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
if exc_info is not None: