예제 #1
0
 private function _closeTransport()
 {
     if ($this->transport->isOpen()) {
         $this->transport->close();
     }
 }
예제 #2
0
 public function close()
 {
     $this->transport_->close();
 }
 /**
  * Forces the connection to close.
  *
  * Generally there's no need to call it yourself as it will be closed on
  * termination.
  */
 public function close()
 {
     if ($this->isOpen) {
         $this->transport->flush();
         $this->transport->close();
         $this->isOpen = false;
     }
 }