Method: Cyc::Connection::SocketDriver#disconnect

Defined in:
lib/cyc/connection/socket.rb

#disconnectObject

Disconnects the driver from the server.



42
43
44
45
46
47
48
49
# File 'lib/cyc/connection/socket.rb', line 42

def disconnect
  @sock.close if @sock
rescue
  # This should go to log #2.

ensure
  @sock = nil
  @buffer.discard!
end