Skip to content

Commit

Permalink
[Fix]Stop recording when error occurs on join (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavlidakis authored Mar 22, 2024
1 parent 71a5e90 commit 6dcc1f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/StreamVideoSwiftUI/CallViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ open class CallViewModel: ObservableObject {
log.error("Error starting a call", error: error)
self.error = error
callingState = .idle
Task { await audioRecorder.stopRecording() }
enteringCallTask = nil
}
}
Expand Down

0 comments on commit 6dcc1f8

Please sign in to comment.