We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d96f465 commit e81fdc9Copy full SHA for e81fdc9
mod/WorldLink/FutariPatch.cs
@@ -34,6 +34,7 @@ public static class Futari
34
35
private static readonly Dictionary<NFSocket, FutariSocket> redirect = new();
36
private static FutariClient client;
37
+ private static bool checkAuthCalled = false;
38
private static bool isInit = false;
39
public static bool stopping = false;
40
@@ -78,6 +79,10 @@ public static void OnBeforePatch()
78
79
[HarmonyPatch(typeof(OperationManager), "CheckAuth_Proc")]
80
public static bool CheckAuth_Proc()
81
{
82
+ // Prevent multiple calls
83
+ if (checkAuthCalled) return PrefixRet.RUN_ORIGINAL;
84
+ checkAuthCalled = true;
85
+
86
if (isInit) return PrefixRet.RUN_ORIGINAL;
87
Log.Info("CheckAuth_Proc");
88
0 commit comments