Fix build

This commit is contained in:
Carl Lerche
2017-08-09 14:17:55 -07:00
parent dfec401fdf
commit a8c8cdb8e9
3 changed files with 5 additions and 3 deletions

View File

@@ -63,12 +63,14 @@ impl FlowControl {
// TODO: Handle invalid increment
if sz <= self.underflow {
self.underflow -= sz;
return;
return Ok(());
}
let added = sz - self.underflow;
self.next_window_update += added;
self.underflow = 0;
Ok(())
}
/*