summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2023-01-20 15:31:32 +0000
committerSimon McVittie <smcv@collabora.com>2023-01-20 15:31:32 +0000
commit5a6edc5595b15a94ff40e188ac0b5723859476e3 (patch)
treee8422bf5b42153a61043defca192effd3ec1fc2c
parentf1d05153b943b6c46192323ead096d5ca177f99e (diff)
parent3c221246dc9d05fe4f980b8064c229a031c8a1d0 (diff)
Merge branch 'call-async-no-reply' into 'master'
Set no_reply flag in call_async when reply_handler is None See merge request dbus/dbus-python!22
-rw-r--r--dbus/connection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/connection.py b/dbus/connection.py
index fd20800..46d74d4 100644
--- a/dbus/connection.py
+++ b/dbus/connection.py
@@ -577,6 +577,8 @@ class Connection(_Connection):
if reply_handler is None and error_handler is None:
# we don't care what happens, so just send it
+ # (and we can let the recipient optimize by not replying to us)
+ message.set_no_reply(True)
self.send_message(message)
return