From bce2ae2c3a6e23d3bd24ba9a39e9494afaed7450 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Mon, 21 Oct 2019 10:34:40 +0200 Subject: [PATCH] Moved validate check down (fixed error creator not set) --- ManagedPool/Pool_T_.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ManagedPool/Pool_T_.cs b/ManagedPool/Pool_T_.cs index 663a6fd..82ce9da 100644 --- a/ManagedPool/Pool_T_.cs +++ b/ManagedPool/Pool_T_.cs @@ -62,13 +62,13 @@ namespace eu.railduction.netcore.dll.ManagedPool this.increaseBuffer = increaseBuffer; this.decreaseBuffer = decreaseBuffer; - // Validate objects state - validate(); - this.creator = creator; this.destructor = destructor; this.healthChecker = healthChecker; + // Validate objects state + validate(); + // Create the minimum amount of objects Task.Run(() => createNewObjects(min)); }