Avoid performing two NAT probe tests at startup

After the initial NAT probe test, a full interval before starting the
recurring NAT retests.
This commit is contained in:
Cecylia Bocovich 2022-05-27 10:01:19 -04:00
parent 4e7f897527
commit 6310ca4381
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -574,7 +574,7 @@ func (sf *SnowflakeProxy) Start() error {
} }
if sf.NATTypeMeasurementInterval != 0 { if sf.NATTypeMeasurementInterval != 0 {
NatRetestTask.Start() NatRetestTask.WaitThenStart()
defer NatRetestTask.Close() defer NatRetestTask.Close()
} }