summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarle Bjørgeengen <jarle@bjorgeengen.net>2010-03-02 08:07:27 +0000
committerJarle Bjørgeengen <jarle@bjorgeengen.net>2010-03-02 08:07:27 +0000
commit161530dae6b9de7a719fb9fcd52aac52031fdf54 (patch)
treefb9f9d37026ae384f1881572714dad7ac554c3d9
parent5d0c49f51cd2dab374947f684a119bd85e380162 (diff)
die did not work from within the loop, trying unloop_all
-rwxr-xr-xfrikanalen/bin/scheduler8
1 files changed, 5 insertions, 3 deletions
diff --git a/frikanalen/bin/scheduler b/frikanalen/bin/scheduler
index d492aa4..eb40f59 100755
--- a/frikanalen/bin/scheduler
+++ b/frikanalen/bin/scheduler
@@ -55,8 +55,8 @@ my $palwidth = 720;
my $palheight = 432;
my $ezplaylist = "./frikanalen.m3u";
-#my $ezpid;
-my $ezpid = "4261" ;
+my $ezpid;
+#my $ezpid = "4261" ;
my $ezcfg = new File::Temp( UNLINK => 0, SUFFIX => '.xml' );
my $ezcfgname = $ezcfg->filename();
@@ -279,7 +279,9 @@ if ( $opts{"s"} ) {
Event->timer(at => $suicide_time,
data => {},
cb => sub {
- die "Sucide at midnight\n";
+ ezstream_stop();
+ Event::unloop_all();
+ #die "Suicide at midnight\n";
});
Event::loop();
exit 0;