Skip to content

Commit

Permalink
Fix sending messages in disabled mode
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
barbushin committed Jun 30, 2015
1 parent 160e166 commit 762cddc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"require": {
"php": ">=5.3.0",
"illuminate/support": "5.*",
"php-console/php-console": ">=3.1"
"php-console/php-console": ">=3.1.4 <4.0"
},
"autoload": {
"psr-0": {
Expand Down
6 changes: 5 additions & 1 deletion src/PhpConsole/Laravel/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ protected function initPhpConsole() {
Helper::register();
}

if (!$this->isEnabled || !Connector::getInstance()->isActiveClient()) {
$isActiveClient = $connector->isActiveClient();
if (!$this->isEnabled || !$isActiveClient) {
if($isActiveClient) {
$connector->disable();
}
return;
}

Expand Down

0 comments on commit 762cddc

Please sign in to comment.