public function quit() { SpotDebug::msg(SpotDebug::TRACE, __CLASS__ . "->quit()"); if (!$this->_connected) { return; } # if try { $this->_nntp->disconnect(); } catch (Exception $x) { // dummy, we dont care about exceptions during quitting time } # catch $this->_connected = false; }
/** * Disconnect from the current NNTP server. * * @param bool $force Force quit even if not connected? * * @return mixed On success : (bool) Did we successfully disconnect from usenet? * On Failure : (object) PEAR_Error. * * @access public */ public function doQuit($force = false) { $this->_resetProperties(); // Check if we are connected to usenet. if ($force === true || parent::_isConnected(false)) { if ($this->_debugBool) { $this->_debugging->log(get_class(), __FUNCTION__, "Disconnecting from " . $this->_currentServer, Logger::LOG_INFO); } // Disconnect from usenet. return parent::disconnect(); } return true; }