diff -r 38dbcda3cf20 -r bd3372a2afc1 greyhound.php --- a/greyhound.php Mon Sep 01 13:05:52 2008 -0400 +++ b/greyhound.php Mon Sep 01 13:06:50 2008 -0400 @@ -126,6 +126,7 @@ $httpd->add_handler('scripts', 'dir', GREY_ROOT . '/scripts'); $httpd->add_handler('favicon.ico', 'file', GREY_ROOT . '/amarok_icon.ico'); $httpd->add_handler('apple-touch-icon.png', 'file', GREY_ROOT . '/apple-touch-icon.png'); + $httpd->add_handler('spacer.gif', 'file', GREY_ROOT . '/spacer.gif'); // load all themes if forking is enabled // Themes are loaded when the playlist is requested. This is fine for // single-threaded operation, but if the playlist handler is only loaded @@ -155,7 +156,7 @@ } catch( Exception $e ) { - if ( strstr(strval($e), "Could not bind") ) + if ( strstr(strval($e), "Could not bind") || strstr(strval($e), "Address already in use") ) { burnout("Could not bind to the port $ip:$port. Is Greyhound already running? Sometimes browsers don't close off their connections until Greyhound has been dead for about a minute, so try starting Greyhound again in roughly 60 seconds. If that doesn't work, type \"killall -9 php\" at a terminal and try starting Greyhound again in 60 seconds."); }