eldbus: Fix _eldbus_connection_send_and_block()
authorJosé Roberto de Souza <zehortigoza@gmail.com>
Fri, 5 Dec 2014 03:01:37 +0000 (01:01 -0200)
committerChris Michael <cp.michael@samsung.com>
Fri, 5 Dec 2014 14:53:08 +0000 (09:53 -0500)
commit8b193c145ec0d9ecc9e9a16dbec335c9f209c0a3
treeb388c71674151b89261bb6b283b8ba002be3001e
parent44f0f3e1707f0ade71eb7ccab5ecc70494c00ad8
eldbus: Fix _eldbus_connection_send_and_block()

Some problems with the actual implementation:
- the reply should not be writable, as it can only be read.
- if an error happen dbus_connection_send_with_reply_and_block()
will return NULL so we need check before use it
- all other send calls remove one reference of the message

Now also it is creating a error message, so the caller can know why it fail.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/eldbus/eldbus_pending.c
src/lib/eldbus/eldbus_proxy.h