From f8a96ba11fa551c234f85d3893541d7c6c115688 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 15 Mar 2016 17:08:36 +1030 Subject: [PATCH] daemon: remove try_command call after queue_cmd. queue_cmd already calls try_command; this is reduandant. Signed-off-by: Rusty Russell --- daemon/peer.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/daemon/peer.c b/daemon/peer.c index ed8adf65e..281d22186 100644 --- a/daemon/peer.c +++ b/daemon/peer.c @@ -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 = {