Skip to content

Commit

Permalink
Do not report an error in websocket_log when closing a VNC connection
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Jan 9, 2019
1 parent 97c8dba commit 2d1204f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/websocket_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def initialize(options = {})
@proxy.each_ready do |left, right|
begin
@adapters[left].fetch(64.kilobytes) { |data| @adapters[right].issue(data) } # left -> right
rescue IOError
rescue IOError, IO::WaitReadable, IO::WaitWritable
cleanup(:info, "Closing websocket proxy for VM %{vm_id}", left, right)
rescue StandardError => ex
cleanup(:error, "Websocket proxy for VM %{vm_id} errored with #{ex} #{ex.backtrace.join("\n")}", left, right)
Expand Down

0 comments on commit 2d1204f

Please sign in to comment.