done. going to bed now.

pull/43/merge
Tim Robinson 2015-05-28 09:38:52 +00:00
rodzic 022af9a3ff
commit be80f12c62
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1952,10 +1952,11 @@ function handleLeaveDocument(userIds, client, data) {
var docId = data.docId;
var userId = userIds.userId;
var clientId = userIds.clientId;
if (!documents[docId] || !documents[docId][clientId] || !client.openDocIds[docId])
if (!documents[docId] || !documents[docId][clientId] || !client.openDocIds[docId]) {
return console.error("[vfs-collab] Trying to leave a non-member document!",
docId, clientId, documents[docId] && Object.keys(documents[docId]), Object.keys(client.openDocIds),
Object.keys(documents), Object.keys(clients));
}
delete client.openDocIds[docId];
console.error("[vfs-collab]", clientId, "is leaving document", docId);
delete documents[docId][clientId];
@ -2935,3 +2936,6 @@ lock("abc", function () {
}, 100);
});
*/
// Exported for testing
exports.operation = operations;