From c3c647d51e8acfd32aa262bd440115f210763f51 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 16 Nov 2020 22:13:48 +0000 Subject: [PATCH] NetworkSession: remove useless disconnect() call this can't execute here because of the disconnectGuard, so this call always does nothing. --- src/network/mcpe/NetworkSession.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/network/mcpe/NetworkSession.php b/src/network/mcpe/NetworkSession.php index 6ece36ac1..26bcb5e27 100644 --- a/src/network/mcpe/NetworkSession.php +++ b/src/network/mcpe/NetworkSession.php @@ -520,7 +520,6 @@ class NetworkSession{ public function transfer(string $ip, int $port, string $reason = "transfer") : void{ $this->tryDisconnect(function() use ($ip, $port, $reason) : void{ $this->sendDataPacket(TransferPacket::create($ip, $port), true); - $this->disconnect($reason, false); if($this->player !== null){ $this->player->disconnect($reason, null, false); }