Update registration after every write (#4102)

This commit is contained in:
Arkadiy Paronyan 2017-01-10 12:11:32 +01:00 committed by GitHub
parent e86b955815
commit d67ceec50c

View File

@ -158,8 +158,8 @@ impl<Socket: GenericSocket> GenericConnection<Socket> {
} }
if self.send_queue.is_empty() { if self.send_queue.is_empty() {
self.interest.remove(Ready::writable()); self.interest.remove(Ready::writable());
io.update_registration(self.token)?;
} }
io.update_registration(self.token)?;
Ok(r) Ok(r)
}) })
} }