diff --git a/seqcli.sln.DotSettings b/seqcli.sln.DotSettings index 90262bd3..657b8385 100644 --- a/seqcli.sln.DotSettings +++ b/seqcli.sln.DotSettings @@ -2,11 +2,14 @@ True True True + True True + True True True True True True True - True \ No newline at end of file + True + True \ No newline at end of file diff --git a/src/SeqCli/PlainText/Framing/FrameReader.cs b/src/SeqCli/PlainText/Framing/FrameReader.cs index a11b4bab..9dbdddc9 100644 --- a/src/SeqCli/PlainText/Framing/FrameReader.cs +++ b/src/SeqCli/PlainText/Framing/FrameReader.cs @@ -63,7 +63,7 @@ public async Task TryReadAsync() return new Frame(); var line = await _unawaitedNextLine; - if (line[0] == 65279) + if (line?.Length > 0 && line[0] == 65279) line = line.Substring(1); _unawaitedNextLine = null; diff --git a/test/SeqCli.Tests/PlainText/FrameReaderTests.cs b/test/SeqCli.Tests/PlainText/FrameReaderTests.cs index 49c6205a..393496ca 100644 --- a/test/SeqCli.Tests/PlainText/FrameReaderTests.cs +++ b/test/SeqCli.Tests/PlainText/FrameReaderTests.cs @@ -73,7 +73,7 @@ static async Task ReadAllFrames(string source, TextParser fra var reader = new FrameReader( new StringReader(source), frameStart, - TimeSpan.FromMilliseconds(10)); + TimeSpan.FromMilliseconds(100)); var result = new List();