Skip to content

db: Don't blindly iterate the NULL context

Guido Günther requested to merge agx/libcmatrix:db-iterate-context into main

We need to take the current threads default context into account as otherwise async operations started in that context might end up in the "main main" context due to libcmatrix blindly iterating that context when waiting for async operations to finish resulting in

libsoup:ERROR:../libsoup/soup-session.c:1458:message_completed: assertion failed: (item->context == soup_thread_default_context ()) Bail out! libsoup:ERROR:../libsoup/soup-session.c:1458:message_completed: assertion failed: (item->context == soup_thread_default_context ())

Merge request reports