diff options
-rw-r--r-- | core/setup/file.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/setup/file.go b/core/setup/file.go index f957c230f..768fec49f 100644 --- a/core/setup/file.go +++ b/core/setup/file.go @@ -20,8 +20,11 @@ func File(c *Controller) (middleware.Middleware, error) { for _, n := range zones.Names { if len(zones.Z[n].TransferTo) > 0 { c.Startup = append(c.Startup, func() error { - zones.Z[n].Notify() - return err + zones.Z[n].StartupOnce.Do(func() { + if len(zones.Z[n].TransferTo) > 0 { + zones.Z[n].Notify() + } + }) }) } } |