mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
While restoring the database connections due to lost server connection, ensure that the databases which were previously connected are only reconnected. #5919
This commit is contained in:
@@ -111,7 +111,8 @@ class ServerHeartbeatTimer():
|
||||
def _release_connections(server_conn, sess_id, sid):
|
||||
for d in server_conn:
|
||||
try:
|
||||
# Release the connection
|
||||
# Release the connection only if it is connected
|
||||
if server_conn[d].wasConnected:
|
||||
server_conn[d]._release()
|
||||
# Reconnect on the reload
|
||||
server_conn[d].wasConnected = True
|
||||
|
||||
Reference in New Issue
Block a user