NullSessionHandler: possibly premature optimization

This commit is contained in:
Dylan K. Taylor
2019-05-06 17:28:56 +01:00
parent 685481b172
commit 82974e0271
3 changed files with 12 additions and 3 deletions

View File

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