From 2bdf2b3e51f512668f2d6fa7151d479dfdafadd1 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 14 Jul 2020 14:14:16 -0300 Subject: [PATCH] Fixing set_unlock_delay. --- client/src/session/remote/properties.cc | 9 +-------- server/testscripts/getproperty.sh | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/client/src/session/remote/properties.cc b/client/src/session/remote/properties.cc index 5789eda..9935a26 100644 --- a/client/src/session/remote/properties.cc +++ b/client/src/session/remote/properties.cc @@ -134,16 +134,9 @@ void IPC::Session::setUnlockDelay(unsigned short delay) { - int32_t rc = -1; - Request(*this,true,"unlock_delay") .push((uint32_t) delay) - .call() - .pop(rc); - - if(rc) { - throw std::system_error((int) rc, std::system_category()); - } + .call(); } diff --git a/server/testscripts/getproperty.sh b/server/testscripts/getproperty.sh index a16f35c..b3f0f41 100755 --- a/server/testscripts/getproperty.sh +++ b/server/testscripts/getproperty.sh @@ -7,7 +7,7 @@ dbus-send \ --session \ --dest=br.com.bb.pw3270.a\ --print-reply \ - "/br/com/bb/tn3270/session" \ + "/br/com/bb/pw3270/a" \ "org.freedesktop.DBus.Properties.Get" \ string:br.com.bb.tn3270.session \ string:${1} -- libgit2 0.21.2