Skip to content

Commit

Permalink
fix: remove double check on isValid
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Jan 14, 2020
1 parent ae2ad8c commit 2a5f71e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -219,7 +219,7 @@ public DatabaseClient getDatabaseClient(DatabaseId db) {
invalidatedDbClients.add(dbClients.get(db));
dbClients.remove(db);
}
if (dbClients.containsKey(db) && dbClients.get(db).pool.isValid()) {
if (dbClients.containsKey(db)) {
return dbClients.get(db);
} else {
SessionPool pool =
Expand Down

0 comments on commit 2a5f71e

Please sign in to comment.