diff --git a/include/dbus-c++/connection.h b/include/dbus-c++/connection.h index 67527c8..62d4941 100644 --- a/include/dbus-c++/connection.h +++ b/include/dbus-c++/connection.h @@ -98,7 +98,7 @@ public: bool send( const Message&, unsigned int* serial = NULL ); - Message send_blocking( Message& msg, int timeout ); + Message send_blocking( Message& msg, int timeout = -1); PendingCall send_async( Message& msg, int timeout ); diff --git a/src/object.cpp b/src/object.cpp index 0fc06a1..b18d9cc 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -323,7 +323,7 @@ Message ObjectProxy::_invoke_method( CallMessage& call ) call.path(path().c_str()); call.destination(service().c_str()); - return conn().send_blocking(call, 2000); + return conn().send_blocking(call); } bool ObjectProxy::handle_message( const Message& msg )