azure-iot-sdk-python icon indicating copy to clipboard operation
azure-iot-sdk-python copied to clipboard

Handle when transport has been garbage collected.

Open Siecje opened this issue 1 year ago • 0 comments

Checklist

  • [x] I have read the contribution guidelines.
  • [ ] I added or modified the existing tests to cover the change (we do not allow our test coverage to go down).
  • If this is a modification that impacts the behavior of a public API
    • [ ] I edited the corresponding document in the devdoc folder and added or modified requirements.

Reference/Link to the issue solved with this PR (if any)

#1192

Description of the problem

this can be None if the object has already been garbage collected.

Description of the solution

Check if this is None and log as in on_disconnect.

Siecje avatar Sep 03 '24 13:09 Siecje