]> git.bitcoin.ninja Git - rust-lightning/commit
Close channels on Err returns inside the same channel_state lock
authorMatt Corallo <git@bluematt.me>
Mon, 19 Nov 2018 03:01:32 +0000 (22:01 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Nov 2018 04:57:54 +0000 (23:57 -0500)
commit31ec11f446d1b61326db34259b2a098bc44d4437
tree03c66391cf46ec8d0d7ba8fc559ff4be2f240fdc
parentbac091cdb9cc01a7962dee3bdbc977e3bea0af0d
Close channels on Err returns inside the same channel_state lock

If we never accessed channels for a peer outside of a message
handler for that peer then this wouldn't be a problem since message
handlers are required to be serialized per-peer. However, that
isn't the world we live in - we may want to forward payments or we
may get a send_payment call.
src/ln/channelmanager.rs