fixed panic when client connected abruptly
This commit is contained in:
@@ -335,6 +335,8 @@ func (c *RTCClient) ResumeLogs() {
|
||||
}
|
||||
|
||||
func (c *RTCClient) SendRequest(msg *livekit.SignalRequest) error {
|
||||
c.lock.Lock()
|
||||
defer c.lock.Unlock()
|
||||
payload, err := protojson.Marshal(msg)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user