Skip to content

Commit 995b2cf

Browse files
committed
refacotr: make sure to initialize the timeout chacker berfore the system db
1 parent 82b45e8 commit 995b2cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/main/java/com/orientechnologies/orient/core/db/OrientDBEmbedded.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ public OrientDBEmbedded(String directoryPath, OrientDBConfig configurations, Ori
187187
final long delay = autoCloseDelay * 60 * 1000;
188188
initAutoClose(delay);
189189
}
190-
systemDatabase = new OSystemDatabase(this);
191-
securitySystem = new ODefaultSecuritySystem();
192-
securitySystem.activate(this, this.configurations.getSecurityConfig());
193190
long timeout =
194191
this.configurations
195192
.getConfigurations()
196193
.getValueAsLong(OGlobalConfiguration.COMMAND_TIMEOUT);
197194
timeoutChecker = new OCommandTimeoutChecker(timeout, this);
195+
systemDatabase = new OSystemDatabase(this);
196+
securitySystem = new ODefaultSecuritySystem();
197+
securitySystem.activate(this, this.configurations.getSecurityConfig());
198198
}
199199

200200
protected OCachedDatabasePoolFactory createCachedDatabasePoolFactory(OrientDBConfig config) {

0 commit comments

Comments
 (0)