summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.go b/server.go
index b326eb32..31aa4e07 100644
--- a/server.go
+++ b/server.go
@@ -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)