Moved validate check down (fixed error creator not set)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user