lib/rmpd/commands/miscellaneous.rb in rmpd-1.0.1 vs lib/rmpd/commands/miscellaneous.rb in rmpd-1.0.2
- old
+ new
@@ -23,11 +23,16 @@
def command_list
send_command("command_list_begin")
@in_command_list = true
yield self
send_command("command_list_end")
- read_response
+ if @in_command_list_response_regexp
+ read_responses(@in_command_list_response_regexp)
+ else
+ read_response
+ end
ensure
@in_command_list = false
+ @in_command_list_response_regexp = nil
end
end
end