Skip to content

MPD server hangs after receiving "close" command #150

@johnson-christopher

Description

@johnson-christopher

I am using xmobar-0.15 with MPD support to get the status of the currently playing track. It in turn uses libmpd-0.7.2.

Whenever I do this, shortly after the first time it connects to mopidy all other connections to mopidy's MPD server are lost. Any further attempts to connect to mopidy (via ncmpcpp or another xmobar session) timeout.

Here is the debug log.

It appears to happen after the 'close' command is issued by the xmobar client. The line that crashes is line 151 of mopidy/utils/network.py. I can modify the dispatcher to ignore the close command or comment out the following try/except clause on lines 150-153 and it stops crashing:

    try:
        self.actor_ref.stop()
    except ActorDeadError:
        pass

self.actor_ref.stop() is not throwing any exception.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions