Эх сурвалжийг харах

Add repetitive notice reset comment

Rod Hynes 7 жил өмнө
parent
commit
3b7b9f9497
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      psiphon/controller.go

+ 3 - 0
psiphon/controller.go

@@ -166,6 +166,9 @@ func NewController(config *Config) (controller *Controller, err error) {
 // component fails or the parent context is canceled.
 func (controller *Controller) Run(ctx context.Context) {
 
+	// Ensure fresh repetitive notice state for each run, so the
+	// client will always get an AvailableEgressRegions notice,
+	// an initial instance of any repetitive error notice, etc.
 	ResetRepetitiveNotices()
 
 	ReportAvailableRegions(controller.config)