Better handling of subscribers to avoid a slice panic

This commit is contained in:
Dane Everitt
2020-07-29 21:56:22 -07:00
parent 7f9ec4402a
commit 373dbd355e
2 changed files with 27 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ type Server struct {
// Internal mutex used to block actions that need to occur sequentially, such as
// writing the configuration to the disk.
sync.RWMutex
emitterLock sync.Mutex
// Maintains the configuration for the server. This is the data that gets returned by the Panel
// such as build settings and container images.