Added in connection status to the blumen status log

This commit is contained in:
Peter Slattery 2021-03-31 02:13:37 -07:00
parent 9e1b5d45f0
commit 1f06b183a6
2 changed files with 4 additions and 0 deletions

View File

@ -184,6 +184,8 @@ InitDebugServices_OffMode (debug_services* Services,
gs_thread_context Ctx, gs_thread_context Ctx,
s32 ThreadCount) s32 ThreadCount)
{ {
*Services = {0};
Services->Ctx = Ctx; Services->Ctx = Ctx;
Services->GetWallClock = GetWallClock; Services->GetWallClock = GetWallClock;
Services->GetThreadId = GetThreadId; Services->GetThreadId = GetThreadId;

View File

@ -133,6 +133,7 @@ BlumenLumen_MicListenJob(gs_thread_context* Ctx, u8* UserData)
{ {
if (!SocketQueryStatus(Data->SocketManager, ListenSocket)) if (!SocketQueryStatus(Data->SocketManager, ListenSocket))
{ {
Data->IsConnected = false;
if (SocketHandleIsValid(ListenSocket)) if (SocketHandleIsValid(ListenSocket))
{ {
OutputDebugStringA("Disconnected from Python Server\n"); OutputDebugStringA("Disconnected from Python Server\n");
@ -142,6 +143,7 @@ BlumenLumen_MicListenJob(gs_thread_context* Ctx, u8* UserData)
if (ListenSocket.Index != 0) if (ListenSocket.Index != 0)
{ {
OutputDebugStringA("Connected to Python Server\n"); OutputDebugStringA("Connected to Python Server\n");
Data->IsConnected = true;
} }
} }