Exception on login with premium account using FastLogin, it used to work on ealier builds, it's already reported to the manager of FastLogin and he confirmd that the bug it's on AuthMe side.
Waterfall / TacoSpigot 1.8.8 + Some V2 Timings cherypick, also tested with PaperSpigot 1 .8.8
Build 1634
@games647 May I ask you for an initial analysis? What's weird is from the stacktrace it seems to me that we restore "allow flight" in sync mode, so I'm surprised at the error. The last AuthMe code lines:
LimboService#restoreData
AllowFlightRestoreType#restoreAllowFlight
Then it's my bad. Previously the API executed the async task instead of sync one.
EDIT:
@ljacqu FastLogin calls the NewAPI async where it calls the AsynchronousLogin. This is what I expected, but then it jumps into a sync task and executes it in a async context.
I think scheduleSyncTaskFromOptionallyAsyncTask doesn't work as expected.
@games647, thank you!
I understand the issue now. FastLogin calls our NewAPI#forceLogin in async mode, and because @hsombini has set async to false in AuthMe, scheduleSyncTaskFromOptionallyAsyncTask won't create a sync task (because it assumes it can't be coming from an async source).
I'll only be able to look at this into detail in two or three days and I'm not quite sure how this should be fixed right now. Do you have a suggestion?
What do you think https://github.com/AuthMe/AuthMeReloaded/compare/thread-check ?
@games647 Nice fix, i didn't know bukkit had such method.
@games647 Excellent, that looks really nice! Thank you
Most helpful comment
What do you think https://github.com/AuthMe/AuthMeReloaded/compare/thread-check ?