()
| 581 | |
| 582 | |
| 583 | def cleanup_globals(): |
| 584 | del pdata[request.sid] |
| 585 | del cdata[request.sid] |
| 586 | server_id = open_psql_connections[request.sid] |
| 587 | del open_psql_connections[request.sid] |
| 588 | # Check if all the connections of the adhoc server is closed |
| 589 | # then delete the server from the pgadmin database. |
| 590 | from pgadmin.misc.workspaces import check_and_delete_adhoc_server |
| 591 | check_and_delete_adhoc_server(server_id) |
| 592 | |
| 593 | |
| 594 | def disconnect_socket(): |
no test coverage detected