Misc clean up (#1099)

This commit is contained in:
Raja Subramanian
2022-10-19 05:02:41 +05:30
committed by GitHub
parent b530572304
commit 41147e924f
2 changed files with 21 additions and 23 deletions
+4
View File
@@ -894,6 +894,10 @@ func (t *PCTransport) getOnNegotiationFailed() func() {
}
func (t *PCTransport) Negotiate(force bool) {
if t.isClosed.Load() {
return
}
if force {
t.lock.Lock()
t.debouncedNegotiate(func() {