Skip to content

Commit

Permalink
🐛 should capture the line before signalling
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffynuts committed Nov 15, 2023
1 parent 9d9659d commit b33201f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,14 @@ public string ReadLine()

private void CaptureLine(string line)
{
StdOut.Add(line);
var isConnectionStringLine = (line ?? "")
.Contains("connection string", StringComparison.OrdinalIgnoreCase);
if (!_haveStartedListening && isConnectionStringLine)
{
_waitForListeningBarrier.SignalAndWait();
_haveStartedListening = true;
}

StdOut.Add(line);
}

public void Dispose()
Expand Down

0 comments on commit b33201f

Please sign in to comment.