Skip to content

Commit

Permalink
Merge pull request #29 from mtanana/patch-1
Browse files Browse the repository at this point in the history
Update WakeUp.cs
  • Loading branch information
genemars authored Sep 24, 2018
2 parents 35f6007 + 0e9223f commit bff0c2d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ZWaveLib/CommandClasses/WakeUp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,14 @@ public static void ResendOnWakeUp(ZWaveNode node, byte[] msg)
if (queuedCommand.SequenceEqual(command))
{
Utility.logger.Trace("Removing old message {0}", BitConverter.ToString(wakeUpResendQueue[i]));
wakeUpResendQueue.RemoveAt(i);
try
{
wakeUpResendQueue.RemoveAt(i);
}
catch (Exception e)
{
Utility.logger.Warn("Error removing message from WakeUp queue: {0}", e.Message);
}
}
}
Utility.logger.Trace("Adding message {0}", BitConverter.ToString(msg));
Expand Down

0 comments on commit bff0c2d

Please sign in to comment.