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)); }