We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b1bdba commit 0409821Copy full SHA for 0409821
gio/src/task.rs
@@ -433,9 +433,10 @@ where
433
// use Cancellable::NONE as source obj to fulfill `Send` requirement
434
let task = unsafe { Task::<bool>::new(Cancellable::NONE, Cancellable::NONE, |_, _| {}) };
435
let (join, tx) = JoinHandle::new();
436
- task.run_in_thread(move |_, _: Option<&Cancellable>, _| {
+ task.run_in_thread(move |task, _: Option<&Cancellable>, _| {
437
let res = panic::catch_unwind(panic::AssertUnwindSafe(func));
438
let _ = tx.send(res);
439
+ unsafe { ffi::g_task_return_pointer(task.to_glib_none().0, ptr::null_mut(), None) }
440
});
441
442
join
0 commit comments