Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Nov 2, 2020
1 parent 922218d commit b58124b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,12 @@ public function connect()
$this->_queue = \array_merge([[['AUTH', $this->_auth], time(), null]], $this->_queue);
}

$this->_firstConnect = false;

$this->_connection->onError = function ($code, $msg) {
echo new \Exception("Workerman Redis Connection Error $code $msg");
};
$this->process();
$this->_firstConnect && $this->_connectionCallback && \call_user_func($this->_connectionCallback, true, $this);
$this->_firstConnect = false;
};

$time_start = microtime(true);
Expand Down

0 comments on commit b58124b

Please sign in to comment.