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

file-transfer: return a value from task #1137

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

hfiguiere
Copy link
Collaborator

  • This fixes "GTask finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program." errors.


task = g_task_new (NULL, NULL, NULL, NULL);
g_task_set_name (task, name);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to what the commit message describes this commit to be doing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to splitting this in a separate commit, it would be lovely to have the GTask set a source tag, and assert it in stop_file_transfers_in_thread_func as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed them from this PR.


task = g_task_new (NULL, NULL, NULL, NULL);
g_task_set_name (task, name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to splitting this in a separate commit, it would be lovely to have the GTask set a source tag, and assert it in stop_file_transfers_in_thread_func as well

- This fixes "GTask finalized without ever returning (using g_task_return_*()).
This potentially indicates a bug in the program." errors.
@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Oct 12, 2023
Merged via the queue into flatpak:main with commit c27a98b Oct 12, 2023
3 checks passed
@hfiguiere hfiguiere deleted the g_task_return branch October 12, 2023 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triaged
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants