Method: Muby::Connection#close
- Defined in:
- lib/muby/connection.rb
#close ⇒ Object
354 355 356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/muby/connection.rb', line 354 def close if Thread.current != @listener && @listener && @listener.alive? status("Killing listening thread") @listener.kill end if @socket && !@socket.closed? status("Disconnecting our end") conf.disconnect_triggers.each do |command| @inputWindow.execute(command, @inputWindow, @outputWindow) end @socket.close if @socket end end |