Skip to content

Commit

Permalink
Dispose off Peer_connection after every endCall (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacakakpo1 authored Jul 21, 2023
1 parent 745837b commit a4646e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/telnyx/webrtc/sdk/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class MainActivity : AppCompatActivity() {

FirebaseApp.initializeApp(this)

mainViewModel = ViewModelProvider(this@MainActivity).get(MainViewModel::class.java)
mainViewModel = ViewModelProvider(this@MainActivity)[MainViewModel::class.java]

checkPermissions()
initViews()
Expand Down
1 change: 1 addition & 0 deletions telnyx_rtc/src/main/java/com/telnyx/webrtc/sdk/Call.kt
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class Call(
resetCallOptions()
client.stopMediaPlayer()
peerConnection?.release()
peerConnection = null
}

/**
Expand Down

0 comments on commit a4646e5

Please sign in to comment.