Skip to content

Commit

Permalink
Attempt to fix EventReader limitations.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaubry committed Aug 25, 2016
1 parent 5dbf200 commit d158c5f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion YamlDotNet/Core/EventReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ public class EventReader
public EventReader(IParser parser)
{
this.parser = parser;
MoveNext();
if (parser.Current == null)
{
MoveNext();
}
else
{
endOfStream = false;
}
}

/// <summary>
Expand Down

0 comments on commit d158c5f

Please sign in to comment.