Moved validate check down (fixed error creator not set)

This commit is contained in:
Alexander B 2019-10-21 10:34:40 +02:00
parent f78e00ffdc
commit bce2ae2c3a

View File

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