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:
parent
cede4743cb
commit
5db9f93a11
8
server.c
8
server.c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user