SIRTTask exit condition fix on semi received

This commit is contained in:
Stoyan Zlatev 2025-10-08 09:54:44 +02:00
parent f84b146877
commit 668de78cd9
2 changed files with 9 additions and 1 deletions

View File

@ -63,6 +63,13 @@
public abstract void Push(SIRTMessage response);
public void SetError()
{
this.State = SIRTTaskState.Error;
this.awaiter.Set();
}
public void SetCancelled()
{
this.State = SIRTTaskState.Cancelled;

View File

@ -5,6 +5,7 @@
Pending = 0,
Running = 1,
Completed = 2,
Cancelled = 4
Cancelled = 4,
Error = 5
}
}