-
Notifications
You must be signed in to change notification settings - Fork 74
Eosu 404 auth token reauth p2p disconnects v2 #1260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release-6.1.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -199,6 +199,7 @@ public partial class EOSSingleton | |||||||||||||||||
| static private NotifyEventHandle s_notifyLoginStatusChangedCallbackHandle; | ||||||||||||||||||
| static private NotifyEventHandle s_notifyConnectLoginStatusChangedCallbackHandle; | ||||||||||||||||||
| static private NotifyEventHandle s_notifyConnectAuthExpirationCallbackHandle; | ||||||||||||||||||
| static private bool s_isConnectAuthExpirationLoginInProgress; | ||||||||||||||||||
|
|
||||||||||||||||||
| // Setting it twice will cause an exception | ||||||||||||||||||
| static bool hasSetLoggingCallback; | ||||||||||||||||||
|
|
@@ -1000,6 +1001,8 @@ public void CreateConnectUserWithContinuanceToken(ContinuanceToken token, | |||||||||||||||||
| SetLocalProductUserId(createUserCallbackInfo.LocalUserId); | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| s_isConnectAuthExpirationLoginInProgress = false; | ||||||||||||||||||
|
|
||||||||||||||||||
| if (onCreateUserCallback != null) | ||||||||||||||||||
| { | ||||||||||||||||||
| onCreateUserCallback(createUserCallbackInfo); | ||||||||||||||||||
|
|
@@ -1177,6 +1180,8 @@ public void StartConnectLoginWithOptions(Epic.OnlineServices.Connect.LoginOption | |||||||||||||||||
| connectInterface.Login(ref connectLoginOptions, null, | ||||||||||||||||||
| (ref Epic.OnlineServices.Connect.LoginCallbackInfo connectLoginData) => | ||||||||||||||||||
| { | ||||||||||||||||||
| s_isConnectAuthExpirationLoginInProgress = false; | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add this check? There's a convenient extension function for it in the
Suggested change
|
||||||||||||||||||
|
|
||||||||||||||||||
| if (connectLoginData.ResultCode != Result.Success) | ||||||||||||||||||
| { | ||||||||||||||||||
| Log($"Connect login was not successful. ResultCode: {connectLoginData.ResultCode}", LogType.Error); | ||||||||||||||||||
|
|
@@ -1364,6 +1369,12 @@ private void ConfigureConnectExpirationCallback(Epic.OnlineServices.Connect.Logi | |||||||||||||||||
| ulong callbackHandle = EOSConnectInterface.AddNotifyAuthExpiration( | ||||||||||||||||||
| ref addNotifyAuthExpirationOptions, null, (ref AuthExpirationCallbackInfo callbackInfo) => | ||||||||||||||||||
| { | ||||||||||||||||||
| if (s_isConnectAuthExpirationLoginInProgress) | ||||||||||||||||||
| { | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add logging here to say that it's being ignored. It could be useful to debug an issue |
||||||||||||||||||
| return; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| s_isConnectAuthExpirationLoginInProgress = true; | ||||||||||||||||||
| StartConnectLoginWithOptions(connectLoginOptions, null); | ||||||||||||||||||
| }); | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this ever be true here? If we're re-authing then we should never be creating a user