diff --git a/EddiStatusService/StatusService.cs b/EddiStatusService/StatusService.cs index bd59c70fd9..9027240038 100644 --- a/EddiStatusService/StatusService.cs +++ b/EddiStatusService/StatusService.cs @@ -330,18 +330,16 @@ private void handleStatus(Status thisStatus) { return; } - - lock ( statusLock ) + if ( CurrentStatus != thisStatus ) { - if ( CurrentStatus != thisStatus ) + lock ( statusLock ) { // Save our last status for reference and update our current status LastStatus = CurrentStatus; CurrentStatus = thisStatus; - - // Pass the change in status to all subscribed processes - OnStatus( StatusChanged, CurrentStatus ); } + // Pass the change in status to all subscribed processes + OnStatus( StatusChanged, CurrentStatus ); } }