From b0bc3d199b76b588c1b96152bc7e93eb9ec93721 Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sat, 16 Nov 2024 15:26:40 -0500 Subject: [PATCH] fix ban --- noita-proxy/src/net.rs | 1 - noita-proxy/src/net/omni.rs | 7 ------- 2 files changed, 8 deletions(-) diff --git a/noita-proxy/src/net.rs b/noita-proxy/src/net.rs index 3bb82e9b..afbae8a6 100644 --- a/noita-proxy/src/net.rs +++ b/noita-proxy/src/net.rs @@ -319,7 +319,6 @@ impl NetManager { &NetMsg::PeerDisconnected { id: *peer }, Reliability::Reliable, ); - self.peer.remove(*peer) } to_kick.clear(); for net_event in self.peer.recv() { diff --git a/noita-proxy/src/net/omni.rs b/noita-proxy/src/net/omni.rs index 89ca3258..d8939bc1 100644 --- a/noita-proxy/src/net/omni.rs +++ b/noita-proxy/src/net/omni.rs @@ -93,13 +93,6 @@ impl PeerVariant { } } - pub(crate) fn remove(&self, peer: OmniPeerId) { - match self { - PeerVariant::Tangled(p) => p.remove(peer.into()), - PeerVariant::Steam(p) => p.remove(peer), - } - } - pub(crate) fn flush(&self) { if let PeerVariant::Steam(p) = self { p.flush()