Skip to content

Commit

Permalink
fix: avoid checking if a message expects a reply twice (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Aug 9, 2023
1 parent 9cb00ac commit 823e85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbus_fast/message_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def _callback_method_handler(
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,
Expand Down

0 comments on commit 823e85f

Please sign in to comment.