Skip to content

Commit

Permalink
fix(plugin): OutputStream#TryGetNext throws if it's not started (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed May 19, 2022
1 parent 456a822 commit 9e99400
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@ public bool ResetTimestampIfTimedOut(long timestampMicrosec, long timeoutMicrose

protected bool CanCallNext(bool allowBlock)
{
if (_poller == null)
{
Logger.LogWarning("OutputStreamPoller is not initialized. Call StartPolling before running the CalculatorGraph");
return false;
}

if (canTestPresence)
{
if (!allowBlock)
Expand Down

0 comments on commit 9e99400

Please sign in to comment.