mirror of https://github.com/fafhrd91/actix-net
Merge branch 'master' into refactor/worker_handle
This commit is contained in:
commit
6036629959
|
@ -407,7 +407,7 @@ impl Accept {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn accept(&mut self, sockets: &mut Slab<ServerSocketInfo>, token: usize) {
|
fn accept(&mut self, sockets: &mut Slab<ServerSocketInfo>, token: usize) {
|
||||||
while !self.backpressure {
|
loop {
|
||||||
let info = sockets
|
let info = sockets
|
||||||
.get_mut(token)
|
.get_mut(token)
|
||||||
.expect("ServerSocketInfo is removed from Slab");
|
.expect("ServerSocketInfo is removed from Slab");
|
||||||
|
|
Loading…
Reference in New Issue