- // When we are told by LDK to disconnect, we can't return to LDK until we are sure
- // won't call any more read/write PeerManager functions with the same connection.
- // This is set to true if we're in such a condition (with disconnect checked
- // before with the Peer monitor lock held) and false when we can return.
- boolean block_disconnect_socket = false;
- // Indicates LDK told us to disconnect this peer, and thus we should not call socket_disconnected.
- boolean disconnect_requested = false;