mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-20 16:44:04 +01:00
This commit tries to address the possible raceondition that can happen if a client closes its connection after we have fetched it from the syncmap before sending the message. To try to avoid introducing new dead lock conditions, all messages sent to updateChannel has been moved into a function, which handles the locking (instead of calling it all over the place) The same lock is used around the delete/close function.
9.0 KiB
9.0 KiB