-
Notifications
You must be signed in to change notification settings - Fork 13
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
Problem: error in destroyCoreClient (fix #346) #347
Conversation
d18b609
to
6ed3488
Compare
|
adding more protection for garbage collection |
6ed3488
to
4574098
Compare
check validity of |
d09387c
to
551e9fb
Compare
default polling time can be small value such as 10 milli-seconds, and wait in unreal engine blueprint |
f0b663f
to
9a4beee
Compare
fix error in polling fix crash add _coreClient check reformat use weakthis fix crash in polling wait for async task timeout reduce default polling time wait at least polling time remove automatic polling changelog update
9a4beee
to
f25f9c2
Compare
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.
lgtm, left one comment
AsyncTask(ENamedThreads::AnyHiPriThreadNormalTask, [Out, coreclient, | ||
address, chain_id, info, | ||
this]() { | ||
WeakThis]() { | ||
if (!WeakThis.IsValid()) { |
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.
This condition is evoked multiple times. Maybe we can create a helper funtion. Something like
Example
handleIfValid(weakThis, [](auto obj) {
// Code that requires a valid object
obj->someMethod();
});
And then just invoke that function.
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.
ok, i'll check
remove AsyncTask in destroyCoreClient