mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2023-10-21 07:33:40 -05: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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user