The error occurs on Huawei phones. Every time a network change happens, I dispose of the previous peer and recreate a new one to reconnect.We have a requirement to maintain a persistent peer connection, similar to a push-to-talk (PTT) intercom system.
`
try {
peerConnection?.dispose()
} finally {
peerConnection = null
}
peerConnection = peerConnectionFactory.createPeerConnection()
`
