NetworkSession: remove useless disconnect() call

this can't execute here because of the disconnectGuard, so this call always does nothing.
This commit is contained in:
Dylan K. Taylor 2020-11-16 22:13:48 +00:00
parent d1775b166f
commit c3c647d51e

View File

@ -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);
}