Code

check the return value of mpdclient_get_connection()
authorMax Kellermann <max@duempel.org>
Sat, 17 Oct 2009 22:32:37 +0000 (00:32 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 17 Oct 2009 22:32:37 +0000 (00:32 +0200)
commit323ee425fe07485577efee5636ba47efcc8b19fc
treeea3f04e7aba37648b8be1c8863e3b37a90f8ae4b
parente2cbb9b8e3ba7763568c851f880b52de1728fbe5
check the return value of mpdclient_get_connection()

When leaving idle mode, the idle callback (which is invoked indirectly
by mpdclient_get_connection()) may close the connection.  Checking
mpdclient_is_connected() before mpdclient_get_connection() is
pointless for that reason.
src/player_command.c
src/screen_artist.c
src/screen_browser.c
src/screen_client.c
src/screen_file.c
src/screen_outputs.c
src/screen_queue.c
src/screen_song.c
src/utils.c