File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,7 @@ def process_commands
2929 end
3030 event_cmds = Command . commands . map { |cmd | cmd . new ( state , @printer ) }
3131 while !state . proceed? do
32- input = @interface . command_queue . empty? ? nil : @interface . command_queue . shift
33- unless input
34- sleep 0.1
35- next
36- end
32+ input = @interface . command_queue . pop
3733 catch ( :debug_error ) do
3834 splitter [ input ] . each do |input |
3935 # escape % since print_debug might use printf
Original file line number Diff line number Diff line change 1+ require 'thread'
2+
13class TCPSocket
24
35 # Workaround for JRuby issue http://jira.codehaus.org/browse/JRUBY-2063
@@ -24,7 +26,7 @@ class RemoteInterface < Interface # :nodoc:
2426
2527 def initialize ( socket )
2628 @socket = socket
27- @command_queue = [ ]
29+ @command_queue = Queue . new
2830 end
2931
3032 def read_command
You can’t perform that action at this time.
0 commit comments