Commit 0fd5b66
committed
fix: release rgb_send_lock on all channel open failure paths
Three targeted fixes in the LDK event handlers:
- FundingGenerationReady: release lock unconditionally after
funding_transaction_generated(), not just on error. Once the funding
TX is handed to LDK the RGB wallet operations are complete.
- ChannelPending: release lock before spawn_blocking so it is freed
even if the subsequent rgb_send_end task panics.
- ChannelClosed: release lock when channel_funding_txo is None
(channel closed during negotiation, before any funding was created).
Ref: #1111 parent 2e507b6 commit 0fd5b66
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
694 | 693 | | |
| 694 | + | |
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
| 1058 | + | |
| 1059 | + | |
1058 | 1060 | | |
1059 | 1061 | | |
1060 | 1062 | | |
| |||
1068 | 1070 | | |
1069 | 1071 | | |
1070 | 1072 | | |
1071 | | - | |
1072 | | - | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | 1075 | | |
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
| 1118 | + | |
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
| |||
1127 | 1127 | | |
1128 | 1128 | | |
1129 | 1129 | | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1130 | 1134 | | |
1131 | 1135 | | |
1132 | 1136 | | |
| |||
0 commit comments