]> git.bitcoin.ninja Git - ldk-java/commit
Drop dup PeerManager tiemr_tick_occurred calls from NioPeerHandler
authorMatt Corallo <git@bluematt.me>
Sat, 4 Sep 2021 19:46:46 +0000 (19:46 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 4 Sep 2021 20:41:37 +0000 (20:41 +0000)
commitf90e8a7a3964e53cca69a1e5c7e47c768f08adb6
tree0042605f59849a36355d522a807669c0978abe99
parentbfce5a76040b2a849aa181072e49e28038d0f6b4
Drop dup PeerManager tiemr_tick_occurred calls from NioPeerHandler

We call PeerManager's timer_tick_occurred in the
lightning-background-processor crate, initialized from the
ChannelManagerConstructor. Prior to the use of the
lightning-background-processor we'd needed to call PeerManager's
timer_tick_occurred from NioPeerHandler, but we never dropped it
after the switch. Thus, every ~30 seconds we'll call
PeerManager::timer_tick_occurred twice in a row, disconnecting all
of our peers.
src/main/java/org/ldk/batteries/NioPeerHandler.java