summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-06 19:44:45 +0300
committerWolfy-J <[email protected]>2018-06-06 19:44:45 +0300
commitd93294a8c37b81df06a1a46906815f70414ab01d (patch)
tree8ee0fa02e2a386ffb0604f758bfaa66e8ae0c1b1 /server.go
parenta48a65a93ece4990e661234a443c9abd8e67b649 (diff)
more error handling
Diffstat (limited to 'server.go')
-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)