minor cleanup

This commit is contained in:
Robin Appelman 2018-01-18 13:25:37 +01:00
commit 569fcfd875
3 changed files with 2 additions and 2 deletions

View file

@ -35,6 +35,7 @@ class Connection extends RawConnection {
}
public function clearTillPrompt() {
$this->write('');
do {
$promptLine = $this->readLine();
} while (!$this->isPrompt($promptLine));