Skip to content

Commit

Permalink
send the EOF event from Context
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Jul 8, 2018
1 parent 243a2ac commit b5b36cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format/src/demuxer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl Context {
self.reader.grow(needed);
self.reader.fill_buf()?;
if self.reader.data().len() <= len {
return Err(Error::Io(Eio::UnexpectedEof.into()));
return Ok(Event::Eof);
}
},
_ => return Err(e)
Expand Down

0 comments on commit b5b36cb

Please sign in to comment.