Closed as10896 closed 8 months ago
The exception raised by WebSocket disconnection fails the unsubscribing behavior of the Subscriber context manager. Fixed it by moving the unsubscribing snippet to the finally block.
Subscriber
finally
The try should maybe be moved down to before the yield.
try
yield
Fixed in https://github.com/encode/broadcaster/pull/112
The exception raised by WebSocket disconnection fails the unsubscribing behavior of the
Subscriber
context manager. Fixed it by moving the unsubscribing snippet to thefinally
block.