-
Notifications
You must be signed in to change notification settings - Fork 42
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
Error during unregister (done during emit) #27
Comments
Based on the error it looks like you're removing the function during the same emit, might need try to unregister at a later call. That said this could be fixed with an array copy before iteration, though not sure if perf cost is worth it. Might be an approach I'm missing |
Thanks for the heads up. |
I'm attempting to manually unregister a UPrimaryDataAsset listerner from an event
Registering via
Unregistering via
FGESHandler::DefaultHandler()->RemoveLambdaListener(Context, LambdaFunctionName);
Upon calling RemoveLambdaListener, I am receiving the error below on the first instance/occurence.
If I simply play the game again, everything will work as it's supposed to.
However restarting the editor will once again cause this error to appear the first time RemoveLambdaListener is triggered.
The text was updated successfully, but these errors were encountered: