fix: revert changes to _expects_reply from speed up to processing bluez passive data (#222)

This commit is contained in:
J. Nick Koston 2023-08-09 01:18:32 -10:00 committed by GitHub
parent 8acfa7841a
commit dfa9053a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ cdef object MessageFlag
cdef object MESSAGE_TYPE_CALL
cdef object MESSAGE_TYPE_SIGNAL
cdef object NO_REPLY_EXPECTED
cdef object NO_REPLY_EXPECTED_VALUE
cdef object BLOCK_UNEXPECTED_REPLY
cdef object assert_object_path_valid
cdef object assert_bus_name_valid

View File

@ -27,7 +27,7 @@ from .validators import assert_bus_name_valid, assert_object_path_valid
MESSAGE_TYPE_CALL = MessageType.METHOD_CALL
MESSAGE_TYPE_SIGNAL = MessageType.SIGNAL
NO_REPLY_EXPECTED = MessageFlag.NO_REPLY_EXPECTED
NO_REPLY_EXPECTED_VALUE = MessageFlag.NO_REPLY_EXPECTED.value
_LOGGER = logging.getLogger(__name__)
@ -36,7 +36,7 @@ _Message = Message
def _expects_reply(msg: _Message) -> bool:
"""Whether a message expects a reply."""
return not (msg.flags & NO_REPLY_EXPECTED)
return not (msg.flags.value & NO_REPLY_EXPECTED_VALUE)
def _block_unexpected_reply(reply: _Message) -> None: