Skip to content

Commit

Permalink
fix: Fix where retries are checked
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Jan 23, 2024
1 parent 54b9ece commit 61c7f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/sources/ChromecastSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export class ChromecastSource extends MemorySource {

protected pruneApplications = (force: boolean = false) => {
for(const [k, v] of this.devices.entries()) {
if (!force && (!v.connected || v.retries > 0)) {
if (!force && !v.connected) {
continue;
}

Expand Down Expand Up @@ -456,7 +456,7 @@ export class ChromecastSource extends MemorySource {
}

for (const [k, v] of this.devices.entries()) {
if (!v.connected) {
if (!v.connected || v.retries > 0) {
continue;
}

Expand Down

0 comments on commit 61c7f26

Please sign in to comment.