mirror of
https://github.com/livekit/livekit.git
synced 2026-08-27 22:34:25 +00:00
handle nil MessageChannel
This commit is contained in:
@@ -407,6 +407,9 @@ func (r *RedisRouter) handleRTCMessage(rm *livekit.RTCNodeMessage) error {
|
||||
r.lock.RLock()
|
||||
requestChan := r.requestChannels[pKey]
|
||||
r.lock.RUnlock()
|
||||
if requestChan == nil {
|
||||
return ErrChannelClosed
|
||||
}
|
||||
if err := requestChan.WriteMessage(rmb.Request); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user