anonymousland-synapse/changelog.d/12875.bugfix
Sean Quah bb7a637765
Close ijson coroutines ourselves instead of letting the GC close them (#12875)
Hopefully this means that exceptions raised due to truncated JSON
get a sensible logging context and stack.

Signed-off-by: Sean Quah <seanq@matrix.org>
2022-05-27 11:03:05 +01:00

2 lines
120 B
Plaintext

Explicitly close `ijson` coroutines once we are done with them, instead of leaving the garbage collector to close them.