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:
parent
f956a8c1d9
commit
3dcca4017c
3 changed files with 36 additions and 8 deletions
1
go.mod
1
go.mod
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue