diff --git a/packages/api/src/controllers/databaseConnections.js b/packages/api/src/controllers/databaseConnections.js index f8a322a4..a7394f0e 100644 --- a/packages/api/src/controllers/databaseConnections.js +++ b/packages/api/src/controllers/databaseConnections.js @@ -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}`); }, diff --git a/packages/api/src/proc/databaseConnectionProcess.js b/packages/api/src/proc/databaseConnectionProcess.js index 6611fcdc..58b96526 100644 --- a/packages/api/src/proc/databaseConnectionProcess.js +++ b/packages/api/src/proc/databaseConnectionProcess.js @@ -38,6 +38,7 @@ async function handleIncrementalRefresh() { analysedStructure = newStructure; process.send({ msgtype: 'structure', structure: analysedStructure }); } + setStatusName('ok'); } function setStatus(status) {