Permalink
Browse files

fix: streams doesn't start at the start of streamripper when the

scheduler was used
  • Loading branch information...
1 parent f6ffc5b commit 83e052a7653200635785b950405dc00bc926cc99 @Eule committed Aug 1, 2011
Showing with 11 additions and 1 deletion.
  1. +10 −0 src/misc/SchedulJob.java
  2. +1 −1 src/thread/Thread_Control_Schedul.java
View
@@ -251,6 +251,16 @@ public Boolean isOnceJob() {
}
/**
+ * If the jobs just starts when StreamRipStar starts, then its a "atStartJob"
+ * @return true, if its one, else false
+ */
+ public boolean isAtStartJob()
+ {
+
+ return atStart;
+ }
+
+ /**
*
* @return true, if the old stoptime should be used
*/
@@ -171,7 +171,7 @@ public void run() {
//or:
//the job is a daily or weekly job and is stop. This means
//the the stream was already started, but the user stopped it
- else if(!job.isOnceJob() &&
+ else if(!job.isOnceJob() && !job.isOnceJob() &&
(job.getStopTime() <= now.getTimeInMillis() ||
!mainGui.getControlStream().getStreamByID(job.getStreamID()).getStatus() && mainGui.getControlStream().getStreamByID(job.getStreamID()).userStoppedRecording()))
{

0 comments on commit 83e052a

Please sign in to comment.