archseer/ruby-mpd

First command causes error

Closed this issue · 1 comments

Using MPD 0.19.1 on Debian 8, Ruby 2.1.5p273

require 'ruby-mpd'
mpd = MPD.new
mpd.status # NoMethodError: undefined method `[]' for nil:NilClass from /var/lib/gems/2.1.0/gems/ruby-mpd-0.3.3/lib/ruby-mpd/parser.rb:129:in `make_chunks'
mpd.status # works

Never mind, I'm an idiot. (Though throwing something like a NotConnectedError might be nice)