Allow reconnect before disconnect (#8684)

Co-Authored-By: Max <max@zed.dev>



Release Notes:

- Improved handling of reconnections during calls

---------

Co-authored-by: Max <max@zed.dev>
This commit is contained in:
Conrad Irwin 2024-03-01 15:41:32 -07:00 committed by GitHub
parent 3efb871cd4
commit 5523a510c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 22 additions and 23 deletions

View file

@ -361,8 +361,8 @@ impl Peer {
self.connections.write().remove(&connection_id);
}
#[cfg(any(test, feature = "test-support"))]
pub fn reset(&self, epoch: u32) {
self.teardown();
self.next_connection_id.store(0, SeqCst);
self.epoch.store(epoch, SeqCst);
}