1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

Fix active device check.

This commit is contained in:
Rolf Ahrenberg 2016-06-23 15:36:51 +03:00
parent cede4743cb
commit 5db9f93a11

View File

@ -298,12 +298,12 @@ cSatipServer *cSatipServers::Find(int sourceP)
cSatipServer *cSatipServers::Assign(int deviceIdP, int sourceP, int transponderP, int systemP) cSatipServer *cSatipServers::Assign(int deviceIdP, int sourceP, int transponderP, int systemP)
{ {
for (cSatipServer *s = First(); s && s->IsActive(); s = Next(s)) { for (cSatipServer *s = First(); s; s = Next(s)) {
if (s->Matches(deviceIdP, sourceP, systemP, transponderP)) if (s->IsActive() && s->Matches(deviceIdP, sourceP, systemP, transponderP))
return s; return s;
} }
for (cSatipServer *s = First(); s && s->IsActive(); s = Next(s)) { for (cSatipServer *s = First(); s; s = Next(s)) {
if (s->Assign(deviceIdP, sourceP, systemP, transponderP)) if (s->IsActive() && s->Assign(deviceIdP, sourceP, systemP, transponderP))
return s; return s;
} }
return NULL; return NULL;