summaryrefslogtreecommitdiff
path: root/libmpd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'libmpd.rb')
-rw-r--r--libmpd.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/libmpd.rb b/libmpd.rb
index 202c1ab..1c1679d 100644
--- a/libmpd.rb
+++ b/libmpd.rb
@@ -34,14 +34,11 @@ class MPD
while true
line = @socket.gets
- break if line == "OK\n"
+ return response if line == "OK\n"
return false if line =~ /^ACK/
response << line
end
-
- return true if response.empty?
- return response
end
def generate_hash str