daemon: remove try_command call after queue_cmd.

queue_cmd already calls try_command; this is reduandant.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2016-03-15 17:08:36 +10:30
parent b017ca1240
commit f8a96ba11f
1 changed files with 0 additions and 4 deletions

View File

@ -276,7 +276,6 @@ static struct io_plan *peer_crypto_on(struct io_conn *conn, struct peer *peer)
/* Using queue_cmd is overkill here, but it works. */
queue_cmd(peer, do_anchor_offer, NULL);
try_command(peer);
return io_duplex(conn,
peer_read_packet(conn, peer, pkt_in),
@ -1472,7 +1471,6 @@ static void json_newhtlc(struct command *cmd,
}
queue_cmd(peer, do_newhtlc, newhtlc);
try_command(peer);
}
const struct json_command newhtlc_command = {
@ -1561,7 +1559,6 @@ static void json_fulfillhtlc(struct command *cmd,
}
queue_cmd(peer, do_fullfill, fulfillhtlc);
try_command(peer);
}
const struct json_command fulfillhtlc_command = {
@ -1646,7 +1643,6 @@ static void json_failhtlc(struct command *cmd,
}
queue_cmd(peer, do_failhtlc, failhtlc);
try_command(peer);
}
const struct json_command failhtlc_command = {