Skip to content

Commit

Permalink
WFNEWS-1631_5 restart interval after it gets closed
Browse files Browse the repository at this point in the history
  • Loading branch information
ssylver93 committed Apr 23, 2024
1 parent f3ed0de commit 668cb15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class RoFTitlePage extends RoFPage implements OnInit {
// Start the background task by calling `beforeExit`.
const taskId = await BackgroundTask.beforeExit(async () => {

if(!this.intervalRef) {
if(!this.intervalRef || this.intervalRef.closed) {
this.intervalRef = interval(30000).subscribe(async () => {
if(await this.checkStoredRoF())
this.unsubscribeInterval();
Expand Down

0 comments on commit 668cb15

Please sign in to comment.