mirror of
https://github.com/cudr/slate-collaborative.git
synced 2025-06-13 12:54:04 +00:00
fix: close connection error
This commit is contained in:
parent
de5df0efcd
commit
31a14e2a35
@ -58,7 +58,10 @@ const withAutomerge = <T extends Editor>(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
e.closeConnection = () => {
|
e.closeConnection = () => {
|
||||||
e.connection.close()
|
// close any actively open connections
|
||||||
|
if (e.connection) {
|
||||||
|
e.connection.close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user