[vala] D-Bus: Fix return statement in error handling of async server methods
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix return statement in error handling of async server methods
- Date: Wed, 16 Sep 2009 16:50:34 +0000 (UTC)
commit 5f7393917c474ea5e448485f6eccde085627158d
Author: Jürg Billeter <j bitron ch>
Date: Wed Sep 16 18:31:27 2009 +0200
D-Bus: Fix return statement in error handling of async server methods
codegen/valadbusservermodule.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valadbusservermodule.vala b/codegen/valadbusservermodule.vala
index c2295a4..582cfe8 100644
--- a/codegen/valadbusservermodule.vala
+++ b/codegen/valadbusservermodule.vala
@@ -347,11 +347,12 @@ internal class Vala.DBusServerModule : DBusClientModule {
generate_server_error_cases (error_block, m.get_error_types (), new CCodeIdentifier ("error"), new CCodeIdentifier ("message"), new CCodeIdentifier ("reply"));
send_reply (error_block);
- error_block.add_statement (new CCodeReturnStatement (new CCodeIdentifier ("DBUS_HANDLER_RESULT_HANDLED")));
if (m.coroutine) {
+ error_block.add_statement (new CCodeReturnStatement ());
ready_block.add_statement (new CCodeIfStatement (new CCodeIdentifier ("error"), error_block));
} else {
+ error_block.add_statement (new CCodeReturnStatement (new CCodeIdentifier ("DBUS_HANDLER_RESULT_HANDLED")));
block.add_statement (new CCodeIfStatement (new CCodeIdentifier ("error"), error_block));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]