Merge branch 'master' into refactor/simplify_server_future

This commit is contained in:
fakeshadow 2021-04-09 11:30:59 -07:00 committed by GitHub
commit 28d3279369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ impl Accept {
}
fn accept(&mut self, sockets: &mut Slab<ServerSocketInfo>, token: usize) {
loop {
while !self.backpressure {
let info = sockets
.get_mut(token)
.expect("ServerSocketInfo is removed from Slab");