mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
NullSessionHandler: possibly premature optimization
This commit is contained in:
@ -420,7 +420,7 @@ class NetworkSession{
|
||||
$this->disconnectGuard = true;
|
||||
$func();
|
||||
$this->disconnectGuard = false;
|
||||
$this->setHandler(new NullSessionHandler());
|
||||
$this->setHandler(NullSessionHandler::getInstance());
|
||||
$this->connected = false;
|
||||
$this->manager->remove($this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user