mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-19 07:11:05 +00:00
Initialize the thread list mutex
This commit is contained in:
committed by
Michelle Bergeron
parent
d5037dff82
commit
cdf07e6905
@@ -80,6 +80,7 @@ void LiStopConnection(void) {
|
||||
if (stage == STAGE_PLATFORM_INIT) {
|
||||
Limelog("Cleaning up platform...");
|
||||
cleanupPlatformSockets();
|
||||
cleanupPlatformThreads();
|
||||
stage--;
|
||||
Limelog("done\n");
|
||||
}
|
||||
@@ -100,6 +101,12 @@ int LiStartConnection(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PCONN
|
||||
ListenerCallbacks.stageFailed(STAGE_PLATFORM_INIT, err);
|
||||
goto Cleanup;
|
||||
}
|
||||
err = initializePlatformThreads();
|
||||
if (err != 0) {
|
||||
Limelog("failed: %d\n", err);
|
||||
ListenerCallbacks.stageFailed(STAGE_PLATFORM_INIT, err);
|
||||
goto Cleanup;
|
||||
}
|
||||
stage++;
|
||||
LC_ASSERT(stage == STAGE_PLATFORM_INIT);
|
||||
ListenerCallbacks.stageComplete(STAGE_PLATFORM_INIT);
|
||||
|
||||
Reference in New Issue
Block a user