make auto accept check for object validity
Some checks are pending
ContinuousDelivery / linux-ubuntu (push) Waiting to run
ContinuousDelivery / windows (push) Waiting to run
ContinuousDelivery / release (push) Blocked by required conditions
ContinuousIntegration / linux (push) Waiting to run
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Waiting to run
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Waiting to run
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Waiting to run
ContinuousIntegration / macos (push) Waiting to run
ContinuousIntegration / windows (push) Waiting to run

This commit is contained in:
Green Sky 2024-10-30 15:02:22 +01:00
parent ac54d5c5a8
commit 0ec4d5964c
No known key found for this signature in database

View File

@ -49,6 +49,10 @@ void TransferAutoAccept::iterate(void) {
}
void TransferAutoAccept::checkObj(ObjectHandle o) {
if (!o) {
return; // invalid object
}
if (o.all_of<ObjComp::Ephemeral::File::ActionTransferAccept>()) {
return; // already accepted
}