@@ -65,39 +65,41 @@ export class StateIssues extends Issues {
6565 jobs = jobs . slice ( 0 , MAX_HIGHSTATE_JOBS ) ;
6666 }
6767
68- this . jobs = jobs ;
68+ pPanel . jobs = jobs ;
6969 // this is good only while "State" is the only issue-provider that uses play/pause
7070 pPanel . setPlayPauseButton ( jobs . length === 0 ? "none" : "play" ) ;
7171
7272 this . _updateNextJob ( pPanel , pMsg , pKeys ) ;
7373 }
7474
7575 _updateNextJob ( pPanel , pMsg , pKeys ) {
76- if ( ! this . jobs ) {
76+ if ( ! pPanel . jobs ) {
7777 return ;
7878 }
79- if ( ! this . jobs . length ) {
79+ if ( ! pPanel . jobs . length ) {
8080 // this is good only while "State" is the only issue-provider
8181 pPanel . setPlayPauseButton ( "none" ) ;
82- this . jobs = null ;
82+ pPanel . jobs = null ;
8383 Issues . readyCategory ( pPanel , pMsg ) ;
8484 return ;
8585 }
8686
8787 if ( pPanel . playOrPause !== "play" ) {
88- window . setTimeout ( ( ) => {
88+ pPanel . issuesStateTimeout = window . setTimeout ( ( ) => {
89+ pPanel . issuesStateTimeout = null ;
8990 this . _updateNextJob ( pPanel , pMsg , pKeys ) ;
9091 } , 1000 ) ;
9192 return ;
9293 }
9394
94- const job = this . jobs . pop ( ) ;
95+ const job = pPanel . jobs . pop ( ) ;
9596
9697 const runnerJobsListJobPromise = this . api . getRunnerJobsListJob ( job . id ) ;
9798
9899 runnerJobsListJobPromise . then ( ( pRunnerJobsListJobData ) => {
99100 StateIssues . _handleJobRunnerJobsListJob ( pPanel , pRunnerJobsListJobData , pKeys ) ;
100- window . setTimeout ( ( ) => {
101+ pPanel . issuesStateTimeout = window . setTimeout ( ( ) => {
102+ pPanel . issuesStateTimeout = null ;
101103 this . _updateNextJob ( pPanel , pMsg , pKeys ) ;
102104 } , 100 ) ;
103105 return true ;
0 commit comments