Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to another MPD leaves state unchanged. #78

Open
rocus opened this issue May 27, 2015 · 1 comment
Open

Connecting to another MPD leaves state unchanged. #78

rocus opened this issue May 27, 2015 · 1 comment
Labels

Comments

@rocus
Copy link

rocus commented May 27, 2015

Suppose you have mpda and mpdb. Sonata is connected to mpda. If you change the connection to mpdb, your current queue, covers and other things stay unchanged. If you first disconnect from mpda and then connect to mpdb everything is as expected: the current playlist is correct. I tested this on 1.6.2.1 and on the latest sources: both show this behaviour.

@multani
Copy link
Owner

multani commented Jun 18, 2015

Hum, yes, this is really buggy.

This is my Sonata's log when I switch from the first connection to the second one:

[2015-06-18 23:18:07] [MainThread] mpd: Calling MPD status()
[2015-06-18 23:18:07] [MainThread] mpd: Calling MPD currentsong()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD status()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD currentsong()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD close()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD disconnect()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD connect('localhost', 6600, timeout=None)
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD status()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD status()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD currentsong()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD connect('localhost', 6661, timeout=None)
[2015-06-18 23:18:08] [MainThread] sonata.mpdhelper: Already connected
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD status()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD status()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD currentsong()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD status()
[2015-06-18 23:18:08] [MainThread] mpd: Calling MPD currentsong()
[2015-06-18 23:18:09] [MainThread] mpd: Calling MPD status()
[2015-06-18 23:18:09] [MainThread] mpd: Calling MPD currentsong()

Obviously, there's something wrong with the "Already connected" here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@multani @rocus and others