mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-21 15:40:31 +00:00
Fix state cleanup if LiStartConnection() fails
This commit is contained in:
@@ -374,5 +374,9 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre
|
||||
ListenerCallbacks.connectionStarted();
|
||||
|
||||
Cleanup:
|
||||
if (err != 0) {
|
||||
// Undo any work we've done here before failing
|
||||
LiStopConnection();
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user