Compare commits

..

No commits in common. "331a84627abdd862c17f2b032168e6e1afaf5580" and "fdba92fddb3a6f847157c7932036c504e1a1bfb7" have entirely different histories.

2 changed files with 12 additions and 5 deletions

View file

@ -288,12 +288,19 @@ where
if offset >= *this.available_file_size {
trace!("waiting for inotify events");
file.get_or_insert(inner_file);
if ready!(this.events.poll_next(cx)).is_none() {
match this.events.poll_next(cx) {
Poll::Pending => {
return Poll::Pending;
}
Poll::Ready(Some(_)) => {
return self.poll_next(cx);
}
_ => {
return Poll::Ready(Some(Err(ErrorInternalServerError(
"inotify stream empty",
))));
}
return self.poll_next(cx);
}
}
}

0
src/file.rs Normal file
View file