Skip to content

Commit

Permalink
Add public PhpConsole\Connector::disable() method
Browse files Browse the repository at this point in the history
  • Loading branch information
barbushin committed Jun 30, 2015
1 parent ef0e953 commit b40e988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PhpConsole/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function isActiveClient() {
/**
* Set client connection as not active
*/
protected function breakClientConnection() {
public function disable() {
$this->isActiveClient = false;
}

Expand All @@ -203,7 +203,7 @@ public function setAllowedIpMasks(array $ipMasks) {
}
}
}
$this->breakClientConnection();
$this->disable();
}
}

Expand Down Expand Up @@ -546,7 +546,7 @@ private function listenGetPostponedResponse() {
if(isset($_POST[self::POST_VAR_NAME]['getPostponedResponse'])) {
header('Content-Type: application/json; charset=' . self::CLIENT_ENCODING);
echo $this->getPostponeStorage()->pop($_POST[self::POST_VAR_NAME]['getPostponedResponse']);
$this->breakClientConnection();
$this->disable();
exit;
}
}
Expand Down

0 comments on commit b40e988

Please sign in to comment.