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:
parent
d917354fd9
commit
de7788daa6
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user