mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fixes #599 by checking for registration status before updating feedbacks
This commit is contained in:
parent
e03b0dc1bb
commit
4f7ad4ccb9
1 changed files with 6 additions and 0 deletions
|
|
@ -130,6 +130,12 @@ namespace PepperDash.Essentials.Core
|
|||
void Hardware_OnlineStatusChange(GenericBase currentDevice, OnlineOfflineEventArgs args)
|
||||
{
|
||||
Debug.Console(2, this, "OnlineStatusChange Event. Online = {0}", args.DeviceOnLine);
|
||||
|
||||
if (!Hardware.Registered)
|
||||
{
|
||||
return; // protects in cases where device has been unregistered and feedbacks would attempt to access null sigs.
|
||||
}
|
||||
|
||||
foreach (var feedback in Feedbacks)
|
||||
{
|
||||
if (feedback != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue