mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 17:16:01 +00:00
database connections
This commit is contained in:
@@ -60,10 +60,9 @@ module.exports = {
|
||||
if (existing) {
|
||||
existing.disconnected = true;
|
||||
if (kill) existing.subprocess.kill();
|
||||
const last = this.opened.find((x) => x.conid == conid);
|
||||
this.opened = this.opened.filter((x) => x.conid != conid);
|
||||
this.closed[conid] = {
|
||||
...(last && last.status),
|
||||
...existing.status,
|
||||
name: 'error',
|
||||
};
|
||||
socket.emitChanged(`server-status-changed`);
|
||||
|
||||
Reference in New Issue
Block a user