Skip to content

Commit 44ecfc7

Browse files
committed
f add docs and fix bool set
1 parent 1b5bc05 commit 44ecfc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,8 @@ struct Peer {
781781
/// Note that these messages are *not* encrypted/MAC'd, and are only serialized.
782782
gossip_broadcast_buffer: VecDeque<MessageBuf>,
783783
awaiting_write_event: bool,
784+
/// Set to true if the last call to [`Descriptor::send_data`] for this peer had the
785+
/// `should_read` flag unset, indicating we've told the driver to stop reading from this peer.
784786
sent_pause_read: bool,
785787

786788
pending_read_buffer: Vec<u8>,
@@ -1546,7 +1548,7 @@ where
15461548
}
15471549
} else {
15481550
if peer.sent_pause_read {
1549-
force_one_write = false;
1551+
force_one_write = true;
15501552
}
15511553
}
15521554
while force_one_write || !peer.awaiting_write_event {

0 commit comments

Comments
 (0)