Tweaked the code so that the _forceInternal variable doesn't care about if the scope is connected or not.

This commit is contained in:
2024-12-24 17:00:03 +00:00
parent 431776cfdf
commit 6aa19b869b
+5 -4
View File
@@ -3267,15 +3267,16 @@ namespace ASCOM.Meade.net
private bool GetSlewing(bool isInternalCall) private bool GetSlewing(bool isInternalCall)
{ {
var result = false; var result = false;
try
{
if (Connected)
{
if (!isInternalCall) if (!isInternalCall)
{ {
result = _forceSlewingCount > 0; result = _forceSlewingCount > 0;
} }
try
{
if (Connected)
{
result = result || MovingAxis() || IsSlewingToTarget(); result = result || MovingAxis() || IsSlewingToTarget();
} }
} }