Skip to content

Commit c532e43

Browse files
committed
Let's rescue IOError instead of Exception.
Debug output removed
1 parent 21e6da4 commit c532e43

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/ruby-debug-ide/interface.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,9 @@ class LocalInterface < Interface
2323

2424
class RemoteInterface < Interface # :nodoc:
2525
attr_accessor :command_queue
26-
#attr_accessor :socket
2726

2827
def initialize(socket)
2928
@socket = socket
30-
class <<@socket
31-
alias close_without_logging close
32-
def close
33-
close_without_logging
34-
$stderr.puts "medvedko is " + ::Kernel.caller(1).join("\n")
35-
end
36-
end
3729
@command_queue = Queue.new
3830
end
3931

@@ -49,7 +41,7 @@ def print(*args)
4941

5042
def close
5143
@socket.close
52-
rescue Exception
44+
rescue IOError
5345
end
5446

5547
end

0 commit comments

Comments
 (0)