src/phpbeanstalk/Client.php
public function disconnect() {
		if (!is_resource($this->_connection)) {
			$this->connected = false;
		} else {
			$this->connected = !fclose($this->_connection);

			if (!$this->connected) {
				$this->_connection = null;
			}
		}
		return !$this->connected;
	}
public function disconnect() {
		if (!is_resource($this->_connection)) {
			$this->connected = false;
		} else {
			$this->connected = !fclose($this->_connection);

			if (!$this->connected) {
				$this->_connection = null;
			}
		}
		return !$this->connected;
	}
public function disconnect ( ) { if ( ! is_resource ( $ this -> _connection ) ) { $ this -> connected = false ; } else { $ this -> connected = ! fclose ( $ this -> _connection ) ; if ( ! $ this -> connected ) { $ this -> _connection = null ; } } return ! $ this -> connected ; }
Closes the connection to the beanstalk server.

@return boolean `true` if diconnecting was successful.
Closes the connection to the beanstalk server .