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,8 +58,11 @@ const withAutomerge = <T extends Editor>(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
e.closeConnection = () => {
|
e.closeConnection = () => {
|
||||||
|
// close any actively open connections
|
||||||
|
if (e.connection) {
|
||||||
e.connection.close()
|
e.connection.close()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear cursor data
|
* Clear cursor data
|
||||||
|
Loading…
Reference in New Issue
Block a user