[fix] fix crash due to codec init failed

This commit is contained in:
dijunkun
2024-08-13 11:13:29 +08:00
parent f02286365c
commit 9e30203e90
3 changed files with 63 additions and 75 deletions

View File

@@ -43,6 +43,7 @@ void DestroyPeer(PeerPtr *peer_ptr) {
peer_ptr->peer_connection->Destroy();
delete peer_ptr;
peer_ptr = nullptr;
LOG_INFO("Destroy peer");
}
int Init(PeerPtr *peer_ptr, const char *user_id) {