1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00

Switch to instance variable in MPDConnection singleton.

This commit is contained in:
Dan Barber 2013-12-06 12:41:36 +00:00
parent d917354fd9
commit de7788daa6

View File

@ -1,8 +1,8 @@
class MPDConnection
def self.mpd
@@mpd ||= MPD.new
@@mpd.connect unless @@mpd.connected?
@@mpd
@mpd ||= MPD.new
@mpd.connect unless @mpd.connected?
@mpd
end
def self.status