mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-04 14:08:38 +00:00
more information on the sdr list
This commit is contained in:
parent
6a9bbf7bc9
commit
ccdb010e9d
2 changed files with 28 additions and 3 deletions
|
|
@ -298,9 +298,13 @@ class SdrSource(ABC):
|
|||
if self.monitor:
|
||||
self.monitor.join()
|
||||
|
||||
def getClients(self, *args):
|
||||
if not args:
|
||||
return self.clients
|
||||
return [c for c in self.clients if c.getClientClass() in args]
|
||||
|
||||
def hasClients(self, *args):
|
||||
clients = [c for c in self.clients if c.getClientClass() in args]
|
||||
return len(clients) > 0
|
||||
return len(self.getClients(*args)) > 0
|
||||
|
||||
def addClient(self, c: SdrSourceEventClient):
|
||||
if c in self.clients:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue