Skip to content

Commit c71fef1

Browse files
committed
using infinite timeout constant instead of -1
1 parent af36835 commit c71fef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonRpc/OutputHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private void ProcessOutputQueue()
4040
while (true)
4141
{
4242
if (_thread == null) return;
43-
if (_queue.TryTake(out var value, -1, token))
43+
if (_queue.TryTake(out var value, Timeout.Infinite, token))
4444
{
4545
var content = JsonConvert.SerializeObject(value);
4646

0 commit comments

Comments
 (0)