mirror of
https://github.com/cudr/slate-collaborative.git
synced 2024-10-27 20:34:06 +00:00
defensive code for when the document sometimes isn't there on server restarts. (#26)
This commit is contained in:
parent
a9b20ae99d
commit
5e0ee3e8d9
@ -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…
Reference in New Issue
Block a user