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; } }