Also add Share::getWrite to non native shares

This commit is contained in:
Robin Appelman 2014-07-24 01:29:54 +02:00
commit 89d73346f2
7 changed files with 112 additions and 35 deletions

View file

@ -75,14 +75,10 @@ class Connection extends RawConnection {
}
}
public function close() {
public function close($terminate = true) {
if (is_resource($this->getInputStream())) {
$this->write('close' . PHP_EOL);
}
}
public function __destruct() {
$this->close();
parent::__destruct();
parent::close($terminate);
}
}