Skip to content

[BUG] nmrs concurrency protection #177

@cachebag

Description

@cachebag

Multiple simultaneous calls to connect() on the same NetworkManager instance could interfere with each other.

If two tasks try to connect to different networks simultaneously, they might both try to disconnect the device, race on activation or interfere with each other's state monitoring.

Some of the things I'm thinkig of:

  • Add internal mutex/lock for connection operations
  • Consider adding a is_connecting() method

We should probably add documentation for now that concurrent connections are not supported since I don't think I'm gonna tackle this quite yet.

Metadata

Metadata

Labels

bugSomething isn't workingnmrsChanges to nmrs

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions