Skip to content

Commit df6fbd4

Browse files
committed
Fixed duplicate notify-events
1 parent 669dc79 commit df6fbd4

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

ebean-datasource/src/main/java/io/ebean/datasource/pool/ConnectionPool.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,7 @@ private void tryEnsureMinimumConnections() {
189189
notify.dataSourceUp(this);
190190
}
191191
} catch (SQLException e) {
192-
dataSourceUp.set(false);
193-
dataSourceDownReason = e;
194192
Log.error("Error trying to ensure minimum connections, maybe db server is down - message:" + e.getMessage(), e);
195-
if (notify != null) {
196-
notify.dataSourceDown(this, e);
197-
}
198193
} finally {
199194
notifyLock.unlock();
200195
}

0 commit comments

Comments
 (0)