Code

check the return value of mpdclient_get_connection()