This commit is contained in:
bgkillas 2024-11-16 15:26:40 -05:00
parent 5e87447d9e
commit b0bc3d199b
2 changed files with 0 additions and 8 deletions

View file

@ -319,7 +319,6 @@ impl NetManager {
&NetMsg::PeerDisconnected { id: *peer }, &NetMsg::PeerDisconnected { id: *peer },
Reliability::Reliable, Reliability::Reliable,
); );
self.peer.remove(*peer)
} }
to_kick.clear(); to_kick.clear();
for net_event in self.peer.recv() { for net_event in self.peer.recv() {

View file

@ -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) { pub(crate) fn flush(&self) {
if let PeerVariant::Steam(p) = self { if let PeerVariant::Steam(p) = self {
p.flush() p.flush()