Fixed the refresh issue when a server gets disconnected.

This commit is contained in:
Murtuza Zabuawala
2016-03-23 16:51:08 +05:30
committed by Ashesh Vashi
parent a6e96c5576
commit 0e044e1216

View File

@@ -91,7 +91,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
d.connected = false;
d.icon = 'icon-server-not-connected';
t.addIcon(i, {icon: d.icon});
obj.callbacks.refresh.apply(obj, [i]);
obj.callbacks.refresh.apply(obj, [null, i]);
if (pgBrowser.serverInfo && d._id in pgBrowser.serverInfo) {
delete pgBrowser.serverInfo[d._id]
}