Skip to content

Commit

Permalink
fix(ui): For non-polling sources use last activity date for status
Browse files Browse the repository at this point in the history
So that status changes if player is updated instead of waiting for track to be discovered
  • Loading branch information
FoxxMD committed Oct 3, 2023
1 parent ab84cb3 commit 2deca32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/server/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const setupApi = (app: ExpressWithAsync, logger: Logger, initialLogOutput
} else if (canPoll) {
base.status = polling ? 'Polling' : 'Idle';
} else {
base.status = tracksDiscovered > 0 ? 'Received Data' : 'Awaiting Data'
base.status = !x.instantiatedAt.isSame(x.lastActivityAt) ? 'Received Data' : 'Awaiting Data';
}
return base;
});
Expand Down

0 comments on commit 2deca32

Please sign in to comment.