Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Commit 46e036d

Browse files
committed
Another small fix to prevent errors on aborted client connections.
1 parent a1f73f6 commit 46e036d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def connectionLost(self, reason=connectionDone):
449449
self.die()
450450

451451
def die(self):
452-
if self.player.protocol is not None:
452+
if self.player is not None and self.player.protocol is not None:
453453
self.transport.abortConnection()
454454
self.factory.protocols.pop(self.id)
455455
try:

0 commit comments

Comments
 (0)