Ticket #136 (closed defect: fixed)
Auto-reconnect doesn't work when MPD is unavailable for longer periods.
| Reported by: | Kuno Woudt <kuno@…> | Owned by: | pat |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Version: | Severity: | normal | |
| Keywords: | reconnect, crash | Cc: |
Description
I run mpd on a system dedicated to playing music. It has been configured to suspend whenever no music has been playing for 30 minutes. I can wake it up with a simple command and resume playing.
Theremin does not automatically reconnect to mpd when it is available again, attempts at interacting with theremin after mpd has been unavailable for a few hours will sometimes cause Theremin to crash.
When auto-reconnect is enabled I would expect Theremin to periodically try to reconnect even over longer periods of time. I do not expect a reconnect to be immediate if the server has been gone for a longer period, so increasing the time between reconnect attempts with each attempt is probably a good idea, with an upper limit of 60 seconds or something like that.
