MusicPlayerDaemon / mpdscribble

a MPD client which submits information about tracks being played to a scrobbler (e.g. last.fm)
GNU General Public License v2.0
116 stars 15 forks source link

Immediately submit on SIGUSR1 #1

Closed hghwng closed 7 years ago

hghwng commented 7 years ago

It's not unusual to travel without Internet. After going online afterwards, I have to wait for 2 hours until mpdscribble begins to synchronize again. In this situation, I have to kill mpdscribble and restart it manually.

The pull request upgrades the signal handling mechanism to GLib to cope with the scary signal handler. On SIGUSR1, it reschedules all timers with the interval of 1 second.

MaxKellermann commented 7 years ago

Merged, but please add documentation for that signal to the manpage.