diff options
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -80,13 +80,14 @@ func (srv *Server) Reconfigure(cfg *ServerConfig) error { srv.throw(EventReplaceFailure, err) return err } - srv.throw(EventNewPool, pool) srv.mu.Lock() srv.cfg.Pool, srv.pool = cfg.Pool, pool srv.pool.Observe(srv.poolObserver) srv.mu.Unlock() + srv.throw(EventNewPool, pool) + if previous != nil { go func(previous Pool) { srv.throw(EventDestroyPool, previous) |