mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix typo in connection handler.
This commit is contained in:
committed by
Dave Page
parent
bd139bc83e
commit
da21cabb1e
@@ -402,7 +402,7 @@ Connect to the database server (#{server_id}) for connection ({conn_id}), but -
|
||||
if status is not None:
|
||||
self.conn.close()
|
||||
self.conn = None
|
||||
self.wasConneted = False
|
||||
self.wasConnected = False
|
||||
current_app.logger.error("""
|
||||
Failed to fetch the version information on the established connection to the database server (#{server_id}) for '{conn_id}' with below error message:
|
||||
{msg}
|
||||
@@ -999,7 +999,7 @@ Failed to reset the connection to the server due to following error:
|
||||
return self.execute_scalar('SELECT 1')
|
||||
|
||||
def _release(self):
|
||||
if self.wasConneted:
|
||||
if self.wasConnected:
|
||||
if self.conn:
|
||||
self.conn.close()
|
||||
self.conn = None
|
||||
|
||||
Reference in New Issue
Block a user