Skip to content

Commit 4d865de

Browse files
authored
[DX-2589] feat: update game bridge to include mainnet configuration (#72)
* chore: updated bridge * fix: add game thread execution on pkce dismiss to prevent crash on android
1 parent 97ae75e commit 4d865de

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed
15.6 KB
Binary file not shown.

Source/Immutable/Private/Immutable/ImmutablePassport.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,11 +1090,17 @@ void UImmutablePassport::HandleOnLoginPKCEDismissed()
10901090
// User hasn't entered all required details (e.g. email address) into
10911091
// Passport yet
10921092
IMTBL_LOG("Login PKCE dismissed before completing the flow");
1093-
if (!PKCEResponseDelegate.ExecuteIfBound(FImmutablePassportResult{ false, "Cancelled" }))
1093+
if (FTaskGraphInterface::IsRunning())
10941094
{
1095-
IMTBL_WARN("Login PKCEResponseDelegate delegate was not called");
1095+
FGraphEventRef GameThreadTask = FFunctionGraphTask::CreateAndDispatchWhenReady([this]()
1096+
{
1097+
if (!PKCEResponseDelegate.ExecuteIfBound(FImmutablePassportResult{ false, "Cancelled" }))
1098+
{
1099+
IMTBL_WARN("Login PKCEResponseDelegate delegate was not called");
1100+
}
1101+
PKCEResponseDelegate = nullptr;
1102+
}, TStatId(), nullptr, ENamedThreads::GameThread);
10961103
}
1097-
PKCEResponseDelegate = nullptr;
10981104
}
10991105
else
11001106
{

0 commit comments

Comments
 (0)