summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codegen/valaccodemethodcallmodule.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index fa3f727f6..5eff2803a 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -616,6 +616,11 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
}
}
+ if (async_call == ccall) {
+ // skip out parameter for .begin() calls
+ return_result_via_out_param = false;
+ }
+
CCodeExpression out_param_ref = null;
if (return_result_via_out_param) {