X Tutup
Skip to content

Commit 4e572b1

Browse files
KoloInDaCribHundrec
authored andcommitted
cancel login if ongoing
1 parent cc768c8 commit 4e572b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/funkin/api/newgrounds/NewgroundsClient.hx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ class NewgroundsClient
102102
return;
103103
}
104104

105+
if (NG.core.attemptingLogin)
106+
{
107+
trace("[NEWGROUNDS] Login attempt ongoing, will not login until finished.");
108+
return;
109+
}
110+
105111
if (onSuccess != null && onError != null)
106112
{
107113
NG.core.requestLogin(onLoginResolvedWithCallbacks.bind(_, onSuccess, onError));

0 commit comments

Comments
 (0)
X Tutup