Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading Client protocol property causes infinite recursion loop #820

Closed
asikeero opened this issue Feb 29, 2024 · 0 comments · Fixed by #821
Closed

Reading Client protocol property causes infinite recursion loop #820

asikeero opened this issue Feb 29, 2024 · 0 comments · Fixed by #821
Labels
Status: Available No one has claimed responsibility for resolving this issue.

Comments

@asikeero
Copy link
Contributor

Bug Description

Accessing the field Client.protocol causes infinite recursion, since there is a bug in how that property is defined. The bug is on this line. The function should return self._protocol and not self.protocol as the latter is a recursive definition.
This is the property.

    @property
    def protocol(self) -> MQTTProtocolVersion:
        """
        Protocol version used (MQTT v3, MQTT v3.11, MQTTv5)

        This property is read-only.
        """
        return self.protocol
@github-actions github-actions bot added the Status: Available No one has claimed responsibility for resolving this issue. label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Available No one has claimed responsibility for resolving this issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant