commit:78454ea6d3cf8174a837faf65b7f2371652db826
author:Chip Black
committer:Chip Black
date:Tue Aug 26 16:34:07 2008 -0500
parents:60b835ccf03be20cd9aa879882c43c58006f00f0
Remove $uthome/current when done with all items in the playlist
diff --git a/utunes.pl b/utunes.pl
line changes: +1/-1
index e97281a..60e8058
--- a/utunes.pl
+++ b/utunes.pl
@@ -80,7 +80,6 @@ sub daemon {
 	sub ohnoes {
 		kill SIGTERM, $playpid if $playpid;
 		unlink "$uthome/pid";
-		#unlink "$uthome/current";
 		exit 0;
 	}
 	$SIG{TERM} = \&ohnoes;
@@ -92,6 +91,7 @@ sub daemon {
 			$c++;
 		}
 	}
+	unlink "$uthome/current";
 	ohnoes();
 }