From bdbd206a54f11d8e4b9a73ec1343bf77f3ebff2f Mon Sep 17 00:00:00 2001 From: Sebastian Godelet Date: Sat, 12 Jun 2021 16:05:56 +1000 Subject: [PATCH] Avoid possible data race condition when calculating DSOP --- Meade.net.Telescope/Telescope.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index cfdee7b..80a1cf1 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -1394,7 +1394,7 @@ namespace ASCOM.Meade.net var destinationSOP = hourAngle > 0 ? PierSide.pierEast : - (hourAngle < 0 ? PierSide.pierWest : SideOfPier); + (hourAngle < 0 ? PierSide.pierWest : SharedResourcesWrapper.SideOfPier); // avoid pierUnknown while Slewing LogMessage("DestinationSideOfPier", $"Destination SOP of RA {rightAscension.ToString(CultureInfo.InvariantCulture)} is {destinationSOP}");