]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/jobq.c
Fix scheduled times + add Priority to run start prompt
[bacula/bacula] / bacula / src / dird / jobq.c
index bff56d1ecde27b8d0824741e2c42d74212cf5e7e..a16f6b48fafddbeab40e9f7b9156d020b90b8659 100755 (executable)
@@ -199,9 +199,8 @@ int jobq_add(jobq_t *jq, JCR *jcr)
       sched_pkt = (wait_pkt *)malloc(sizeof(wait_pkt));
       sched_pkt->jcr = jcr;
       sched_pkt->jq = jq;
-      if ((stat = pthread_create(&id, &jq->attr, sched_wait, (void *)sched_pkt)) != 0) {
-        return stat;
-      }
+      stat = pthread_create(&id, &jq->attr, sched_wait, (void *)sched_pkt);       
+      return stat;
    }
 
    if ((stat = pthread_mutex_lock(&jq->mutex)) != 0) {