diff options
Diffstat (limited to 'mpdlib.rb')
-rw-r--r-- | mpdlib.rb | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -30,11 +30,14 @@ class MPD while true line = @socket.gets - return response if line == "OK\n" + break if line == "OK\n" return false if line =~ /^ACK/ response << line end + + return true if response.empty? + return response end def generate_hash str |