Closed devyn closed 10 years ago
Hmm, I see. The way the event logic works is that we iterate over the keys of the new status, and compare them to the old status: https://github.com/archSeer/ruby-mpd/blob/master/lib/ruby-mpd.rb#L113-L116
So when the new event doesn't contain the updating_db ID, that key gets skipped over. We should probably first aggregate the keys from both the old and new status, then iterate over them. I'll try to get to it later today.
Thanks!
On Mon, Apr 21, 2014 at 2:33 AM, Blaž Hrastnik notifications@github.comwrote:
Closed #18 https://github.com/archSeer/ruby-mpd/issues/18 via af35d7chttps://github.com/archSeer/ruby-mpd/commit/af35d7c97d56daa326757e51edd6caaead154dcd .
— Reply to this email directly or view it on GitHubhttps://github.com/archSeer/ruby-mpd/issues/18 .
~devyn
Ideally, if I
I should get something like
so that I can tell when the update has ended, but that doesn't happen at all. Instead the callback is only executed when
updating_db
appears.Here's the relevant status change:
As you can see,
updating_db
simply disappears when the update has completed, which is fine, but I should also get an event.