vaultwarden/src/api
Mathijs van Veluw 0fdda3bc2f
Prevent generating an error during ws close (#4127)
When a WebSocket connection was closing it was sending a message after
it was closed already. This generated an error in the logs.
While this error didn't harm any of the functionallity of Vaultwarden it
isn't nice to see them of course.

This PR Fixes this by catching the close message and breaks the loop at
that point. This prevents the `_` catch-all from replying the close
message back to the client, which was causing the error message.

Fixes #4090
2023-12-04 20:20:13 +01:00
..
core Update crates (#4074) 2023-11-15 10:41:14 +01:00
admin.rs Update crates (#4074) 2023-11-15 10:41:14 +01:00
icons.rs Fix typos 2023-10-05 20:08:26 +03:00
identity.rs Fix typos 2023-10-05 20:08:26 +03:00
mod.rs Add Protected Actions Check (#4067) 2023-11-12 22:15:44 +01:00
notifications.rs Prevent generating an error during ws close (#4127) 2023-12-04 20:20:13 +01:00
push.rs Fix typos 2023-10-05 20:08:26 +03:00
web.rs Fix typos 2023-10-05 20:08:26 +03:00