Skip to content
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

Do not destroy the transaction before it has replied #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aleasto
Copy link
Contributor

@aleasto aleasto commented Jul 21, 2023

Destroy might be signaled before the dbus call has replied.

In destroy() we emit a finished event with code ExitUnknown, but
if the transaction returns an error we should have sent ExitFailed.

Furthermore, if we destroy the transaction object before
QDBusPendingCallWatcher fires, we might lose that event.

@aleasto
Copy link
Contributor Author

aleasto commented Jul 21, 2023

Regardless of the outcome of PackageKit/PackageKit#644, we should address this here to not depend on a PackageKit daemon version bump

@aleasto aleasto force-pushed the destroy-after-return branch 3 times, most recently from c2f9d18 to 8566148 Compare July 21, 2023 20:31
@aleixpol
Copy link
Collaborator

I'm not sure what you mean about "return" in here.

@aleasto
Copy link
Contributor Author

aleasto commented Jul 24, 2023

I'm not sure what you mean about "return" in here.

Dbus method call return, or reply.

Destroy might be signaled before the dbus call has replied.

In destroy() we emit a `finished` event with code ExitUnknown, but
if the transaction returns an error we should have sent ExitFailed.

Furthermore, if we destroy the transaction object before
QDBusPendingCallWatcher fires, we might lose that event.
@aleasto aleasto changed the title Do not destroy the transaction before it has returned Do not destroy the transaction before it has replied Jul 24, 2023
@aleasto
Copy link
Contributor Author

aleasto commented Aug 10, 2023

@aleixpol bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants