opsdroid icon indicating copy to clipboard operation
opsdroid copied to clipboard

Update connector.py

Open jnmadden7 opened this issue 7 months ago • 1 comments

Description

Fixes #

Status

READY | UNDER DEVELOPMENT | ON HOLD

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation (fix or adds documentation)

How Has This Been Tested?

  • Test A
  • Test B

Checklist:

  • [ ] I have performed a self-review of my own code
  • [ ] I have made corresponding changes to the documentation (if applicable)
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes

jnmadden7 avatar Apr 25 '25 22:04 jnmadden7

The web clients are created in the initialization of the connector. That's incorrect because the event loop will not match the one in later phases. Creation of the web clients need to be moved to the connect function. That might already fix the underlying issues.

Lichtblitz avatar Apr 26 '25 06:04 Lichtblitz