mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Start timer for anonymous sessions to join room before sending response.
Fixes flaky "TestExpectAnonymousJoinRoomAfterLeave" under load.
This commit is contained in:
parent
8ed1f15b95
commit
78d74ea3ee
1 changed files with 2 additions and 2 deletions
4
hub.go
4
hub.go
|
|
@ -1719,11 +1719,11 @@ func (h *Hub) processRoom(sess Session, message *ClientMessage) {
|
|||
if roomId == "" {
|
||||
// We can handle leaving a room directly.
|
||||
if session.LeaveRoomWithMessage(true, message) != nil {
|
||||
// User was in a room before, so need to notify about leaving it.
|
||||
h.sendRoom(session, message, nil)
|
||||
if session.UserId() == "" && session.ClientType() != HelloClientTypeInternal {
|
||||
h.startWaitAnonymousSessionRoom(session)
|
||||
}
|
||||
// User was in a room before, so need to notify about leaving it.
|
||||
h.sendRoom(session, message, nil)
|
||||
}
|
||||
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue