@@ -617,7 +617,7 @@ void ntripServerUpdate(int serverIndex)
617617 // Determine if the network has failed
618618 if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
619619 // 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);
621621
622622 // Determine if the network is connected to the media
623623 else if (networkUserConnected (NETWORK_USER_NTRIP_SERVER + serverIndex))
@@ -645,7 +645,7 @@ void ntripServerUpdate(int serverIndex)
645645 // Determine if the network has failed
646646 if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
647647 // 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);
649649
650650 else if (settings.enableNtripServer
651651 && (millis () - ntripServer->lastConnectionAttempt > ntripServer->connectionAttemptTimeout ))
@@ -663,7 +663,7 @@ void ntripServerUpdate(int serverIndex)
663663 // Determine if the network has failed
664664 if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
665665 // 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);
667667
668668 // State change handled in ntripServerProcessRTCM
669669 break ;
@@ -673,7 +673,7 @@ void ntripServerUpdate(int serverIndex)
673673 // Determine if the network has failed
674674 if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
675675 // 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);
677677
678678 // Delay before opening the NTRIP server connection
679679 else if ((millis () - ntripServer->timer ) >= ntripServer->connectionAttemptTimeout )
@@ -699,7 +699,7 @@ void ntripServerUpdate(int serverIndex)
699699 // Determine if the network has failed
700700 if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
701701 // 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);
703703
704704 // Check if caster service responded
705705 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)
785785 // Determine if the network has failed
786786 if (networkIsShuttingDown (NETWORK_USER_NTRIP_SERVER + serverIndex))
787787 // 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);
789789
790790 // Check for a broken connection
791791 else if (!ntripServer->networkClient ->connected ())
0 commit comments