mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 06:07:39 -05:00
Ensure that connection heartbeat signals are stopped on server disconnect. #6147
This commit is contained in:
1 parent
c9920063dd
commit
6c7f5d1a6b
1 file changed
+6
@@ -205,6 +205,12 @@ define('pgadmin.node.server', [
|
||||
d = t.itemData(i);
|
||||
t.removeIcon(i);
|
||||
d.connected = false;
|
||||
|
||||
// Generate the event that server is disconnected
|
||||
pgBrowser.Events.trigger(
|
||||
'pgadmin:server:disconnect',
|
||||
{item: i, data: d}, false
|
||||
);
|
||||
if (d.shared && pgAdmin.server_mode == 'True'){
|
||||
d.icon = 'icon-shared-server-not-connected';
|
||||
}else{
|
||||
|
||||
Reference in new issue
Block a user