mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-24 20:04:28 +00:00
RakLibPacketSender: fixed session leak on server-side disconnect
This commit is contained in:
parent
fde888bf59
commit
e76cc8eb33
@ -49,7 +49,7 @@ class RakLibPacketSender implements PacketSender{
|
|||||||
public function close(string $reason = "unknown reason") : void{
|
public function close(string $reason = "unknown reason") : void{
|
||||||
if(!$this->closed){
|
if(!$this->closed){
|
||||||
$this->closed = true;
|
$this->closed = true;
|
||||||
$this->handler->closeSession($this->sessionId, $reason);
|
$this->handler->close($this->sessionId, $reason);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user