mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Stop transaction goroutine when removing.
This commit is contained in:
parent
e13bca696b
commit
adb391ab5a
1 changed files with 4 additions and 1 deletions
|
|
@ -575,7 +575,10 @@ func (g *TestJanusGateway) send(msg api.StringMap, t *transaction) (uint64, erro
|
|||
func (g *TestJanusGateway) removeTransaction(id uint64) {
|
||||
g.mu.Lock()
|
||||
defer g.mu.Unlock()
|
||||
delete(g.transactions, id)
|
||||
if t, found := g.transactions[id]; found {
|
||||
delete(g.transactions, id)
|
||||
t.quit()
|
||||
}
|
||||
}
|
||||
|
||||
func (g *TestJanusGateway) removeSession(session *JanusSession) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue