state: Allow CMD_CLOSE at any time.

As suggested by Anthony Towns.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2015-09-25 11:51:19 +09:30
parent 188d0b76a4
commit 4d74fd165f
3 changed files with 54 additions and 18 deletions

View File

@@ -38,6 +38,9 @@ struct state_effect {
enum cmd_complete_status status;
void *faildata;
/* Completing a CMD_CLOSE */
enum cmd_complete_status close_status;
/* Stop taking packets? commands? */
bool stop_packets, stop_commands;