mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-04 06:43:11 +02:00
No need to close NATS receiver channel.
Will be garbage collected once the room is removed and is not needed to wakeup the reader (which is terminated in a "select" loop from the close channel).
This commit is contained in:
parent
2f4414561e
commit
3f19882612
1
room.go
1
room.go
|
@ -180,7 +180,6 @@ func (r *Room) unsubscribeBackend() {
|
||||||
if err := subscription.Unsubscribe(); err != nil {
|
if err := subscription.Unsubscribe(); err != nil {
|
||||||
log.Printf("Error closing backend subscription for room %s: %s", r.Id(), err)
|
log.Printf("Error closing backend subscription for room %s: %s", r.Id(), err)
|
||||||
}
|
}
|
||||||
close(r.natsReceiver)
|
|
||||||
}(r.backendSubscription)
|
}(r.backendSubscription)
|
||||||
r.backendSubscription = nil
|
r.backendSubscription = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue