make client ready for broadcast function

This commit is contained in:
Bastian Schroll 2019-02-27 12:08:55 +01:00
parent 54b4c1439a
commit e2ca436e5d
5 changed files with 33 additions and 21 deletions

View file

@ -101,6 +101,12 @@ class BroadcastServer:
self._serverShutdown = False
self._servePort = servePort
def __del__(self):
if self.isRunning:
self.stop()
while self.isRunning:
pass
def start(self):
"""!Start the broadcast server in a new thread

View file

@ -80,7 +80,7 @@ class Packet:
self.set("clientBuildDate", version.date)
self.set("clientBranch", version.branch)
self.set("inputSource", config["client"]["inputSource"])
self.set("frequency", config["inputSource"]["stick"]["frequency"])
self.set("frequency", config["inputSource"]["sdr"]["frequency"])
def addServerData(self):
"""!Add the server information to the decoded data