From 1f06b183a6e7d5d9b78b6234a489fa3982583ef2 Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Wed, 31 Mar 2021 02:13:37 -0700 Subject: [PATCH] Added in connection status to the blumen status log --- src/app/foldhaus_debug.h | 2 ++ src/app/ss_blumen_lumen/blumen_lumen.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/app/foldhaus_debug.h b/src/app/foldhaus_debug.h index 8c99d6e..00a494c 100644 --- a/src/app/foldhaus_debug.h +++ b/src/app/foldhaus_debug.h @@ -184,6 +184,8 @@ InitDebugServices_OffMode (debug_services* Services, gs_thread_context Ctx, s32 ThreadCount) { + *Services = {0}; + Services->Ctx = Ctx; Services->GetWallClock = GetWallClock; Services->GetThreadId = GetThreadId; diff --git a/src/app/ss_blumen_lumen/blumen_lumen.cpp b/src/app/ss_blumen_lumen/blumen_lumen.cpp index cf9e01b..ee6b42c 100644 --- a/src/app/ss_blumen_lumen/blumen_lumen.cpp +++ b/src/app/ss_blumen_lumen/blumen_lumen.cpp @@ -133,6 +133,7 @@ BlumenLumen_MicListenJob(gs_thread_context* Ctx, u8* UserData) { if (!SocketQueryStatus(Data->SocketManager, ListenSocket)) { + Data->IsConnected = false; if (SocketHandleIsValid(ListenSocket)) { OutputDebugStringA("Disconnected from Python Server\n"); @@ -142,6 +143,7 @@ BlumenLumen_MicListenJob(gs_thread_context* Ctx, u8* UserData) if (ListenSocket.Index != 0) { OutputDebugStringA("Connected to Python Server\n"); + Data->IsConnected = true; } }