summaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-12 23:36:34 +0300
committerWolfy-J <[email protected]>2018-06-12 23:36:34 +0300
commit3126c203b10573f6b834b426edbe2e66b50eb9a2 (patch)
tree13cf7b879fb7fe6c733929c182f9ada2fb125910 /server.go
parent47aa87a1cd438c6c99a4640f6af60fd408b5c3bc (diff)
fixing worker allocation loop
Diffstat (limited to 'server.go')
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.go b/server.go
index efdeaca2..7a115a81 100644
--- a/server.go
+++ b/server.go
@@ -123,13 +123,13 @@ func (srv *Server) Reconfigure(cfg *ServerConfig) error {
srv.mu.Unlock()
pool, err := NewPool(cfg.makeCommand(), srv.factory, *cfg.Pool)
+ srv.pool.Listen(srv.poolListener)
if err != nil {
return err
}
srv.mu.Lock()
srv.cfg.Pool, srv.pool = cfg.Pool, pool
- srv.pool.Listen(srv.poolListener)
srv.mu.Unlock()
srv.throw(EventPoolConstruct, pool)