mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-17 04:56:33 +02:00
Add locking to "wakeupChanForTesting" of GRPC clients.
This commit is contained in:
parent
c4fce20678
commit
0cd4099f7b
|
@ -37,6 +37,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (c *GrpcClients) getWakeupChannelForTesting() <-chan struct{} {
|
func (c *GrpcClients) getWakeupChannelForTesting() <-chan struct{} {
|
||||||
|
c.mu.Lock()
|
||||||
|
defer c.mu.Unlock()
|
||||||
|
|
||||||
if c.wakeupChanForTesting != nil {
|
if c.wakeupChanForTesting != nil {
|
||||||
return c.wakeupChanForTesting
|
return c.wakeupChanForTesting
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue