@@ -617,7 +617,7 @@ void ntripServerUpdate(int serverIndex)
617
617
// Determine if the network has failed
618
618
if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
619
619
// Failed to connect to to the network, attempt to restart the network
620
- ntripServerRestart (serverIndex); // Should this be ntripServerStop? TODO
620
+ ntripServerStop (serverIndex, true ); // Note: was ntripServerRestart(serverIndex);
621
621
622
622
// Determine if the network is connected to the media
623
623
else if (networkUserConnected (NETWORK_USER_NTRIP_SERVER + serverIndex))
@@ -645,7 +645,7 @@ void ntripServerUpdate(int serverIndex)
645
645
// Determine if the network has failed
646
646
if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
647
647
// Failed to connect to to the network, attempt to restart the network
648
- ntripServerRestart (serverIndex); // Should this be ntripServerStop? TODO
648
+ ntripServerStop (serverIndex, true ); // Note: was ntripServerRestart(serverIndex);
649
649
650
650
else if (settings.enableNtripServer
651
651
&& (millis () - ntripServer->lastConnectionAttempt > ntripServer->connectionAttemptTimeout ))
@@ -663,7 +663,7 @@ void ntripServerUpdate(int serverIndex)
663
663
// Determine if the network has failed
664
664
if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
665
665
// Failed to connect to to the network, attempt to restart the network
666
- ntripServerRestart (serverIndex); // Should this be ntripServerStop? TODO
666
+ ntripServerStop (serverIndex, true ); // Note: was ntripServerRestart(serverIndex);
667
667
668
668
// State change handled in ntripServerProcessRTCM
669
669
break ;
@@ -673,7 +673,7 @@ void ntripServerUpdate(int serverIndex)
673
673
// Determine if the network has failed
674
674
if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
675
675
// Failed to connect to to the network, attempt to restart the network
676
- ntripServerRestart (serverIndex); // Should this be ntripServerStop? TODO
676
+ ntripServerStop (serverIndex, true ); // Note: was ntripServerRestart(serverIndex);
677
677
678
678
// Delay before opening the NTRIP server connection
679
679
else if ((millis () - ntripServer->timer ) >= ntripServer->connectionAttemptTimeout )
@@ -699,7 +699,7 @@ void ntripServerUpdate(int serverIndex)
699
699
// Determine if the network has failed
700
700
if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
701
701
// Failed to connect to to the network, attempt to restart the network
702
- ntripServerRestart (serverIndex); // Should this be ntripServerStop? TODO
702
+ ntripServerStop (serverIndex, true ); // Note: was ntripServerRestart(serverIndex);
703
703
704
704
// Check if caster service responded
705
705
else if (ntripServer->networkClient ->available () < strlen (" ICY 200 OK" )) // Wait until at least a few bytes have arrived
@@ -785,7 +785,7 @@ void ntripServerUpdate(int serverIndex)
785
785
// Determine if the network has failed
786
786
if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
787
787
// Failed to connect to to the network, attempt to restart the network
788
- ntripServerRestart (serverIndex); // Should this be ntripServerStop? TODO
788
+ ntripServerStop (serverIndex, true ); // Note: was ntripServerRestart(serverIndex);
789
789
790
790
// Check for a broken connection
791
791
else if (!ntripServer->networkClient ->connected ())
0 commit comments