Browse Source

Add repetitive notice reset comment

Rod Hynes 7 years ago
parent
commit
3b7b9f9497
1 changed files with 3 additions and 0 deletions
  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.
 // component fails or the parent context is canceled.
 func (controller *Controller) Run(ctx context.Context) {
 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()
 	ResetRepetitiveNotices()
 
 
 	ReportAvailableRegions(controller.config)
 	ReportAvailableRegions(controller.config)