Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Works as expected, finally.

  • Loading branch information...
commit 543acd5a0a49d39eb05693066a2a23865e67a3e6 1 parent 14f2882
tailor authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/live_console.rb
View
8 lib/live_console.rb
@@ -16,8 +16,6 @@ class LiveConsole
include Socket::Constants
autoload :IOMethods, 'live_console/io_methods'
- NoIOMethodError = Class.new StandardError
-
attr_accessor :io_method, :io, :lc_thread
private :io_method=, :io=, :lc_thread=
@@ -49,7 +47,11 @@ def run
Thread.pass
if io.start
irb_io = GenericIOMethod.new io.raw
- IRB.start_with_io(irb_io)
+ begin
+ IRB.start_with_io(irb_io)
+ rescue Errno::EPIPE => e
+ io.stop
+ end
end
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.