Destroy the close command structure. */
| 111 | |
| 112 | /* Destroy the close command structure. */ |
| 113 | static void |
| 114 | destroy_close_command(struct close_command *cc) |
| 115 | { |
| 116 | list_del(&cc->list); |
| 117 | /* If destroy_close_command_on_channel_destroy was |
| 118 | * triggered beforehand, it will have cleared |
| 119 | * the channel field, preventing us from removing it |
| 120 | * from an already-destroyed channel. */ |
| 121 | if (!cc->channel) |
| 122 | return; |
| 123 | tal_del_destructor2(cc->channel, |
| 124 | &destroy_close_command_on_channel_destroy, |
| 125 | cc); |
| 126 | } |
| 127 | |
| 128 | /* Handle timeout. */ |
| 129 | static void |
nothing calls this directly
no outgoing calls
no test coverage detected