-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Conversation
hfiguiere
commented
Oct 11, 2023
- This fixes "GTask finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program." errors.
6355910
to
11d2b5e
Compare
document-portal/file-transfer.c
Outdated
|
||
task = g_task_new (NULL, NULL, NULL, NULL); | ||
g_task_set_name (task, name); |
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 is unrelated to what the commit message describes this commit to be doing.
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.
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
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.
I have removed them from this PR.
document-portal/file-transfer.c
Outdated
|
||
task = g_task_new (NULL, NULL, NULL, NULL); | ||
g_task_set_name (task, name); |
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.
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.
11d2b5e
to
471b2ce
Compare