Running this with Python 3.9.5 and python-mpd2 3.0.4, I get this output:
Status:
stop
Status:
At this point, the second call to client.status() never completes, and the program hangs. If the 0.1 second delay is changed to any other value, the problem goes away. It seems like this is some kind of race condition with IMMEDIATE_COMMAND_TIMEOUT.
Consider this snippet:
Running this with Python 3.9.5 and python-mpd2 3.0.4, I get this output:
At this point, the second call to
client.status()
never completes, and the program hangs. If the 0.1 second delay is changed to any other value, the problem goes away. It seems like this is some kind of race condition withIMMEDIATE_COMMAND_TIMEOUT
.