Fix connection->read() when first line is not prompt.

This commit is contained in:
Ari Selseng 2019-03-01 16:43:46 +01:00 committed by Robin Appelman
commit 55b7d1a71f

View file

@ -66,7 +66,11 @@ class Connection extends RawConnection {
$this->parser->checkConnectionError($promptLine);
$output = array();
if (!$this->isPrompt($promptLine)) {
$line = $promptLine;
} else {
$line = $this->readLine();
}
if ($line === false) {
$this->unknownError($promptLine);
}