From 14e651e8c13bb3c0c0d8574699b26ff489539010 Mon Sep 17 00:00:00 2001 From: Oleg Baranov Date: Fri, 12 Apr 2024 17:18:39 +0400 Subject: [PATCH] Fixed RLDP Overlay disconnect loop overflow --- adnl/overlay/manager-rldp.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/adnl/overlay/manager-rldp.go b/adnl/overlay/manager-rldp.go index 86c3e51c..ba1284d0 100644 --- a/adnl/overlay/manager-rldp.go +++ b/adnl/overlay/manager-rldp.go @@ -37,13 +37,7 @@ func CreateExtendedRLDP(rldp RLDP) *RLDPWrapper { overlays: map[string]*RLDPOverlayWrapper{}, } w.RLDP.SetOnQuery(w.queryHandler) - prev := w.GetADNL().GetDisconnectHandler() - w.GetADNL().SetDisconnectHandler(func(addr string, key ed25519.PublicKey) { - if prev != nil { - prev(addr, key) - } - w.disconnectHandler(addr, key) - }) + w.GetADNL().SetDisconnectHandler(w.disconnectHandler) return w }