mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-16 21:29:53 +00:00
Ensure a connection termination callback is not invoked due to calling LiInterruptConnection()
This commit is contained in:
@@ -144,7 +144,7 @@ static void ClInternalConnectionTerminated(long errorCode)
|
||||
int err;
|
||||
|
||||
// Avoid recursion and issuing multiple callbacks
|
||||
if (alreadyTerminated) {
|
||||
if (alreadyTerminated || ConnectionInterrupted) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user