[bug] Delete redis proxy key when all viewer quit; For bug 77217

This commit is contained in:
Sergey Konovalov
2025-11-10 20:03:07 +03:00
parent 28ebde22e0
commit fb1bb7ae77

View File

@ -2177,6 +2177,10 @@ exports.install = function (server, app, callbackFunction) {
userIndex
);
}
} else {
if (hvals?.length <= 0 && editorStatProxy?.deleteKey) {
yield editorStatProxy.deleteKey(docId);
}
}
const sessionType = isView ? 'view' : 'edit';
const sessionTimeMs = new Date().getTime() - conn.sessionTimeConnect;