From 6310ca438152b5c467eee93d764d35b5b1f60f70 Mon Sep 17 00:00:00 2001 From: Cecylia Bocovich Date: Fri, 27 May 2022 10:01:19 -0400 Subject: [PATCH] Avoid performing two NAT probe tests at startup After the initial NAT probe test, a full interval before starting the recurring NAT retests. --- proxy/lib/snowflake.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/lib/snowflake.go b/proxy/lib/snowflake.go index 17f0126..c508447 100644 --- a/proxy/lib/snowflake.go +++ b/proxy/lib/snowflake.go @@ -574,7 +574,7 @@ func (sf *SnowflakeProxy) Start() error { } if sf.NATTypeMeasurementInterval != 0 { - NatRetestTask.Start() + NatRetestTask.WaitThenStart() defer NatRetestTask.Close() }