Updating packet buffer clear to be UDP-only

This commit is contained in:
Ryan Summers 2021-05-31 18:07:19 +02:00
parent fa77ddd836
commit 84866f8f69
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ impl<'a, H> PacketBuffer<'a, H> {
}
/// Reset the packet buffer and clear any staged.
#[cfg(feature(socket-udp))]
pub(crate) fn reset(&mut self) {
self.payload_ring.clear();
self.metadata_ring.clear();