Don't cancel handler nursery, let errors bubble
parent
830ef90721
commit
48053588da
|
@ -117,10 +117,9 @@ async def open_event_stream(
|
||||||
source_widget.installEventFilter(kc)
|
source_widget.installEventFilter(kc)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
yield recv
|
async with (send, recv):
|
||||||
|
yield recv
|
||||||
finally:
|
finally:
|
||||||
await send.aclose()
|
|
||||||
source_widget.removeEventFilter(kc)
|
source_widget.removeEventFilter(kc)
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,4 +139,3 @@ async def open_handler(
|
||||||
):
|
):
|
||||||
n.start_soon(async_handler, source_widget, event_recv_stream)
|
n.start_soon(async_handler, source_widget, event_recv_stream)
|
||||||
yield
|
yield
|
||||||
n.cancel_scope.cancel()
|
|
||||||
|
|
Loading…
Reference in New Issue