mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-31 06:13:26 -05:00
baa3f4a80d
Hopefully, this will fix a stack overflow when recovering an appservice. The recursion here leads to a huge chain of deferred callbacks, which then overflows the stack when the chain completes. `inlineCallbacks` makes a better job of this if we use iteration instead. Clean up the code a bit too, while we're there.