Added in connection status to the blumen status log
This commit is contained in:
parent
9e1b5d45f0
commit
1f06b183a6
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue