diff --git a/gnukebox/scrobble-utils.php b/gnukebox/scrobble-utils.php index 64f6248a2d1909e37677e0eb5efb710ce7be9e71..a9991db055a8935dd3befafcc1be73f158c2b2d5 100644 --- a/gnukebox/scrobble-utils.php +++ b/gnukebox/scrobble-utils.php @@ -239,6 +239,8 @@ function forwardScrobble($userid, $artist, $album, $track, $time, $mbid, $source curl_setopt ($curl_session, CURLOPT_POST, true); curl_setopt ($curl_session, CURLOPT_POSTFIELDS, $post_vars); curl_setopt ($curl_session, CURLOPT_RETURNTRANSFER, true); + curl_setopt ($curl_session, CURLOPT_CONNECTTIMEOUT, 1); + curl_setopt ($curl_session, CURLOPT_TIMEOUT, 1); $response = curl_exec($curl_session); curl_close($curl_session);