Skip to content

Commit

Permalink
call: cleanup connection cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Jun 5, 2023
1 parent a19b259 commit 466aab0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/src/main/kotlin/d/d/meshenger/CallActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,6 @@ class CallActivity : BaseActivity(), RTCCall.CallContext {
Log.d(this, "onDestroy()")

try {
currentCall.setCallContext(null)

proximitySensor.stop()

stopRinging()
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/kotlin/d/d/meshenger/call/RTCCall.kt
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,11 @@ class RTCCall : RTCPeerConnection {
Log.d(this, "cleanup()")
Utils.checkIsOnMainThread()

execute {
Log.d(this, "cleanup() executor start")
setCallContext(null)
setStatsCollector(null)
Log.d(this, "cleanup() executor start")
setCallContext(null)
setStatsCollector(null)

execute {
try {
peerConnection?.close()
} catch (e: Exception) {
Expand Down

0 comments on commit 466aab0

Please sign in to comment.