diff options
author | Wolfy-J <[email protected]> | 2018-06-06 19:44:45 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-06 19:44:45 +0300 |
commit | d93294a8c37b81df06a1a46906815f70414ab01d (patch) | |
tree | 8ee0fa02e2a386ffb0604f758bfaa66e8ae0c1b1 /server.go | |
parent | a48a65a93ece4990e661234a443c9abd8e67b649 (diff) |
more error handling
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) |