lib/radiodan/adapter/mpd.rb in radiodan-0.0.2 vs lib/radiodan/adapter/mpd.rb in radiodan-0.0.3
- old
+ new
@@ -31,10 +31,10 @@
end
end
# register new playlist events
@player.register_event :playlist do |playlist|
- self.playlist = playlist
+ EM.next_tick { self.playlist = playlist }
end
end
def playlist=(playlist)
# get rid of current playlist, stop playback