Skip to content

Commit

Permalink
Remove library reply if it has completed, timed out, or errored
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-adaptive committed Jan 20, 2025
1 parent 97a84d7 commit 5e98841
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ protected boolean onTimeout()
*/
boolean poll(final long timeInMs)
{
if (!isExecuting())
{
return true;
}

if (requiresResend)
{
sendMessage();
Expand All @@ -119,11 +124,6 @@ boolean poll(final long timeInMs)
return onTimeout();
}

if (!isExecuting())
{
return false;
}

return false;
}

Expand Down

0 comments on commit 5e98841

Please sign in to comment.