Navigation Menu

Skip to content

Commit

Permalink
Ignore no-loop cases
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 27, 2014
1 parent a00c50c commit 847e997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/serf.rb
Expand Up @@ -255,7 +255,7 @@ def capture_output
@output_io.on_read do |data|
on_read_output.call(data)
end
@loop.attach(@output_io)
@loop.attach(@output_io) if @loop

error_line_buffer = LineBuffer.new
on_read_error = lambda do |data|
Expand All @@ -265,7 +265,7 @@ def capture_output
@error_io.on_read do |data|
on_read_error.call(data)
end
@loop.attach(@error_io)
@loop.attach(@error_io) if @loop

result
end
Expand Down

0 comments on commit 847e997

Please sign in to comment.