You are working on the python-trio/trio-websocket repository. The source code is checked out at /testbed at…
You are working on the python-trio/trio-websocket repository. The source code is checked out at /testbed at…: a task in SWE-Lego-RL-2699 (Harbor dataset). There appears to be some sort of race condition between closing the memory channel and setting close reason .
The task
There appears to be some sort of race condition between closing the memory channel and setting `_close_reason`.
Part of Lego-X/Lego-RL-2699.