diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 1b84b31c1..8cb6ba580 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -764,7 +764,7 @@ static void gossipd_getpeers_complete(struct subd *gossip, const u8 *msg, connected = true; else { channel = peer_active_channel(p); - connected = channel && channel->owner; + connected = channel && channel->connected; } json_add_bool(response, "connected", connected);