hedgedoc/public/docs
Julian Rother 2eb4c8e05f Fix premature note cleanup on error
Connection forbidden errors cause cleanup of note state without first
checking if other clients are still connected to the note. This leads
to inconsistent pad content and changes not being saved properly.

This change reverts parts of 725e982 (Fix realtime on forbidden not clean
up properly ...). The call to `interruptConnection()` on permission errors
is redundant, since `failConnection()` and `disconnect()` already perform
all required cleanup in this case. The other call to `interruptConnection()`
only happens when a client (the first client for a note) disconnects while
the note is being loaded from the database. It is refactored for clarity.

Fixes #3894

Co-authored-by: David Mehren <git@herrmehren.de>
Signed-off-by: Julian Rother <julian@jrother.eu>
2023-05-28 16:10:51 +02:00
..
features.md docs: Improve consistency in MathJax examples. 2022-09-04 21:09:01 +02:00
privacy.md.example Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
release-notes.md Fix premature note cleanup on error 2023-05-28 16:10:51 +02:00
slide-example.md style: linting markdown files 2020-07-10 18:57:59 +02:00
yaml-metadata.md Update public/docs/yaml-metadata.md 2022-09-05 10:11:48 +02:00