fixed connection refresh

This commit is contained in:
Jan Prochazka
2021-01-11 17:49:18 +01:00
parent 7485582612
commit 0541cbf1f6
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ module.exports = {
handle_status(conid, database, { status }) {
const existing = this.opened.find((x) => x.conid == conid && x.database == database);
if (!existing) return;
if (existing.status == status) return;
existing.status = status;
socket.emitChanged(`database-status-changed-${conid}-${database}`);
},