Skip to content

Commit

Permalink
Prevent transport from being released twice
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-daily committed Sep 2, 2024
1 parent 0ca064a commit 157f471
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ class DailyTransport(
}

override fun release() {
thread.assertCurrent()
call?.release()
call = null
}

private fun <V> withCall(action: (CallClient) -> Future<V, VoiceError>): Future<V, VoiceError> {
Expand Down

0 comments on commit 157f471

Please sign in to comment.