Fix potential state reset when trying to join a room (#3040)

When trying to join a room in short sequence, it is possible that a
state reset occurs. This fixes it by using `singleflight`.
This commit is contained in:
Till 2023-05-30 15:27:11 +02:00 committed by GitHub
parent f956a8c1d9
commit 3dcca4017c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 8 deletions

1
go.mod
View file

@ -45,6 +45,7 @@ require (
golang.org/x/crypto v0.9.0
golang.org/x/image v0.5.0
golang.org/x/mobile v0.0.0-20221020085226-b36e6246172e
golang.org/x/sync v0.1.0
golang.org/x/term v0.8.0
gopkg.in/h2non/bimg.v1 v1.1.9
gopkg.in/yaml.v2 v2.4.0