From 1eede79d3dfccf3a5e227ff8842c39665f9482c9 Mon Sep 17 00:00:00 2001 From: Scott Fleckenstein Date: Mon, 13 Oct 2014 16:57:15 -0700 Subject: [PATCH] Unset draining after we are drained --- pool.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pool.js b/pool.js index 9d8c036..eb7736c 100644 --- a/pool.js +++ b/pool.js @@ -188,6 +188,7 @@ Pool.prototype = { if (pool.waitingClients.size() > 0 || pool.availableObjects.length != pool.count) { setTimeout(checking, 100); } else { + pool.draining = false; if (callback) callback(); } };