Skip to content

Commit 2767296

Browse files
committed
It looks like sometimes closed socket may cause ENOTSOCK exception
1 parent 6d7a50e commit 2767296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby-debug-ide/ide_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def process_commands
9393
end
9494
end
9595
end
96-
rescue IOError, Errno::EPIPE
96+
rescue IOError, Errno::EPIPE, Errno::ENOTSOCK
9797
@printer.print_debug "INTERNAL ERROR!!! #{$!}\n"
9898
@printer.print_error "INTERNAL ERROR!!! #{$!}\n" rescue nil
9999
@printer.print_error $!.backtrace.map{|l| "\t#{l}"}.join("\n") rescue nil

0 commit comments

Comments
 (0)