Module: Rmpd::Command::NoidleStrategy

Defined in:
lib/rmpd/command.rb

Instance Method Summary collapse

Instance Method Details

#execute(connection, *args) ⇒ Object



60
61
62
63
64
65
66
67
68
69
# File 'lib/rmpd/command.rb', line 60

def execute(connection, *args)
  connection.send_command(@name, *args)
  # The MPD server will never respond to a noidle command.
  # http://www.mail-archive.com/[email protected]/msg02246.html
  nil
rescue EOFError
  puts "NoidleStrategy EOFError received, retrying" if $DEBUG
  connection.close
  retry
end