Avoid possible data race condition when calculating DSOP

This commit is contained in:
Sebastian Godelet
2021-06-12 16:05:56 +10:00
parent 1684bd60bd
commit bdbd206a54
+1 -1
View File
@@ -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}");