fix: avoid checking if a message expects a reply twice (#223)

This commit is contained in:
J. Nick Koston 2023-08-09 11:14:47 -10:00 committed by GitHub
parent 9cb00ac454
commit 823e85fddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -923,7 +923,7 @@ class BaseMessageBus:
msg: Message, send_reply: Callable[[Message], None]
) -> None:
result = method_fn(interface, *msg_body_to_args(msg))
if not _expects_reply(msg):
if send_reply is BLOCK_UNEXPECTED_REPLY or not _expects_reply(msg):
return
body, fds = fn_result_to_body(
result,