mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 06:15:31 +00:00
make client ready for broadcast function
This commit is contained in:
parent
54b4c1439a
commit
e2ca436e5d
5 changed files with 33 additions and 21 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue