polytope-labs / hyperbridge

Hyperbridge is a hyperscalable coprocessor for verifiable, cross-chain interoperability
https://docs.hyperbridge.network/
Apache License 2.0
107 stars 33 forks source link

Fix leaking state machine streams #297

Closed Wizdave97 closed 3 weeks ago

Wizdave97 commented 3 weeks ago

This PR fixes a regression that caused the state machine update notification streams to keep running in the background even when all receivers have been dropped.

The state machine update notification stream has been reimplemented such that only one background task is ever spawned whenever the function is called.