mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-08-07 07:14:49 +00:00
b37fdae2be
When a client disconnects, there was a check for duplicated sockets in the queue. This check would never have worked, since the arguments were swapped. A bug that easily could have been found using TypeScript. Another possible bug is that when loading a note, we differentiate between two cases: Either the note is already cached in memory, or it is loaded from the database. In the latter case, we added a null-safe check recently to ensure that cleaned-up sockets do not crash HedgeDoc. However, in the case of using the in-memory cached note entry, this null-check was missing. Signed-off-by: Erik Michelson <github@erik.michelson.eu>