Move some code arround

This commit is contained in:
Robin Appelman 2013-05-01 00:03:10 +02:00
commit 78916cfc08
15 changed files with 161 additions and 382 deletions

View file

@ -110,7 +110,13 @@ class Connection {
}
}
public function close() {
$this->write('close' . PHP_EOL);
}
public function __destruct() {
$this->close();
proc_terminate($this->process);
proc_close($this->process);
}
}