Disable close by dtls to fix migration (#3220)
Pion v4 imports new feature that will close peerconnection on dtls.close to detects remote peer closed quickly, it breaks the session migration.
This commit is contained in:
@@ -23,10 +23,6 @@ type FakeHandler struct {
|
||||
onAnswerReturnsOnCall map[int]struct {
|
||||
result1 error
|
||||
}
|
||||
OnClosedStub func()
|
||||
onClosedMutex sync.RWMutex
|
||||
onClosedArgsForCall []struct {
|
||||
}
|
||||
OnDataPacketStub func(livekit.DataPacket_Kind, []byte)
|
||||
onDataPacketMutex sync.RWMutex
|
||||
onDataPacketArgsForCall []struct {
|
||||
@@ -166,30 +162,6 @@ func (fake *FakeHandler) OnAnswerReturnsOnCall(i int, result1 error) {
|
||||
}{result1}
|
||||
}
|
||||
|
||||
func (fake *FakeHandler) OnClosed() {
|
||||
fake.onClosedMutex.Lock()
|
||||
fake.onClosedArgsForCall = append(fake.onClosedArgsForCall, struct {
|
||||
}{})
|
||||
stub := fake.OnClosedStub
|
||||
fake.recordInvocation("OnClosed", []interface{}{})
|
||||
fake.onClosedMutex.Unlock()
|
||||
if stub != nil {
|
||||
fake.OnClosedStub()
|
||||
}
|
||||
}
|
||||
|
||||
func (fake *FakeHandler) OnClosedCallCount() int {
|
||||
fake.onClosedMutex.RLock()
|
||||
defer fake.onClosedMutex.RUnlock()
|
||||
return len(fake.onClosedArgsForCall)
|
||||
}
|
||||
|
||||
func (fake *FakeHandler) OnClosedCalls(stub func()) {
|
||||
fake.onClosedMutex.Lock()
|
||||
defer fake.onClosedMutex.Unlock()
|
||||
fake.OnClosedStub = stub
|
||||
}
|
||||
|
||||
func (fake *FakeHandler) OnDataPacket(arg1 livekit.DataPacket_Kind, arg2 []byte) {
|
||||
var arg2Copy []byte
|
||||
if arg2 != nil {
|
||||
@@ -619,8 +591,6 @@ func (fake *FakeHandler) Invocations() map[string][][]interface{} {
|
||||
defer fake.invocationsMutex.RUnlock()
|
||||
fake.onAnswerMutex.RLock()
|
||||
defer fake.onAnswerMutex.RUnlock()
|
||||
fake.onClosedMutex.RLock()
|
||||
defer fake.onClosedMutex.RUnlock()
|
||||
fake.onDataPacketMutex.RLock()
|
||||
defer fake.onDataPacketMutex.RUnlock()
|
||||
fake.onDataSendErrorMutex.RLock()
|
||||
|
||||
Reference in New Issue
Block a user