defensive code for when the document sometimes isn't there on server restarts. (#26)

pull/33/head
John Barlow 4 years ago committed by GitHub
parent a9b20ae99d
commit 5e0ee3e8d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -219,6 +219,7 @@ export default class SocketIOCollaboration {
garbageCursors = (nsp: string) => {
const doc = this.backend.getDocument(nsp)
if (doc == null || doc == undefined) return;
if (!doc.cursors) return
const namespace = this.io.of(nsp)

Loading…
Cancel
Save