Skip to content

Commit 0885b6d

Browse files
jackwherryMCLiii
authored andcommitted
set format before starting subprocess
1 parent 1b2e921 commit 0885b6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Backend/core/comms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def fs_down_callback(self, data):
242242

243243

244244
telemetry = Telemetry()
245+
set_format(config.DATAFORMAT_PATH)
245246
p = Process(target=sync, args=[telemetry.fs_down_callback])
246247

247248
# kill child process when parent received SIGINT
@@ -257,7 +258,6 @@ def start_comms():
257258
# start file sync
258259
p.start()
259260

260-
set_format(config.DATAFORMAT_PATH)
261261

262262
# Start two live comm channels
263263
vps_thread = threading.Thread(target=lambda : asyncio.run(telemetry.remote_db_fetch(config.VPS_URL)))

0 commit comments

Comments
 (0)