author | Max Kellermann <max@duempel.org> | |
Sat, 17 Oct 2009 22:32:37 +0000 (00:32 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 17 Oct 2009 22:32:37 +0000 (00:32 +0200) | ||
commit | 323ee425fe07485577efee5636ba47efcc8b19fc | |
tree | ea3f04e7aba37648b8be1c8863e3b37a90f8ae4b | tree | snapshot |
parent | e2cbb9b8e3ba7763568c851f880b52de1728fbe5 | commit | diff |
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.
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.