Skip to content

Commit

Permalink
Minor FIx
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Jan 11, 2024
1 parent 54506a0 commit 1651ce3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ArtNetSharp/Communication/AbstractInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,9 @@ protected async Task sendArtTodData(IPv4Address ipAddress, PortConfig portConfig
}
public async Task SendArtRDM(RDMMessage rdmMessage)
{
if (this.IsDisposed || this.IsDisposing || this.IsDeactivated)
return;

if (!rdmMessage.Command.HasFlag(ERDM_Command.RESPONSE) && rdmMessage.SourceUID == RDMUID.Empty)
rdmMessage.SourceUID = UID;

Expand Down Expand Up @@ -1058,11 +1061,15 @@ public void RemoveOutdatedRdmUIDs()

private async void _timerSendPoll_Elapsed(object sender, ElapsedEventArgs e)
{
if (this.IsDisposed || this.IsDisposing || this.IsDeactivated)
return;
if (SendArtPoll)
await sendArtPoll();
}
private async void _timerSendDMX_Elapsed(object sender, ElapsedEventArgs e)
{
if (this.IsDisposed || this.IsDisposing || this.IsDeactivated)
return;
if (pauseDMXOutput.CurrentCount == 0)
{
pauseDMXCountdown--;
Expand All @@ -1073,6 +1080,8 @@ private async void _timerSendDMX_Elapsed(object sender, ElapsedEventArgs e)
}
private async void _timerSendDMXKeepAlive_Elapsed(object sender, ElapsedEventArgs e)
{
if (this.IsDisposed || this.IsDisposing || this.IsDeactivated)
return;
await sendAllArtDMX(true);
}

Expand Down

0 comments on commit 1651ce3

Please sign in to comment.