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

Commit e6395f9

Browse files
committed
Hotfix for client disconnect errors.
1 parent 4d092d6 commit e6395f9

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
@@ -433,7 +433,7 @@ def connectionLost(self, reason=connectionDone):
433433
packets.client_disconnect().build(Container(data=0)))
434434

435435
if self.player is not None:
436-
if self.protocol is None:
436+
if self.protocol is not None:
437437
self.client_disconnect(x)
438438
self.player.logged_in = False
439439
self.player.protocol = None

0 commit comments

Comments
 (0)