Ticket #136 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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.

Change History

Changed 2 years ago by anonymous

Something I forgot to mention before:

When Theremin is in the state described above, it also doesn't reconnect when I try to reconnect it by choosing the 'connect' option in the file menu or pressing the Cmd-K keys.

Changed 2 years ago by pat

It seems a little bug creeped into the project while the big refactoring was going on. I'm trying to take a look at it.

Changed 2 years ago by pat

  • owner set to pat
  • status changed from new to assigned

Changed 2 years ago by pat

  • status changed from assigned to closed
  • resolution set to fixed

Fixed! If not, please tell.

Note: See TracTickets for help on using tickets.