Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Aug 1, 2023
1 parent 2f50e33 commit 5f982b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion VoiceProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ public class VoiceProcessorErrorListener {
/// Function called when a `VoiceProcessorError` occurs.
public func onError(_ error: VoiceProcessorError) {
lock.lock()
defer {
lock.unlock()
}
callback_(error)
lock.unlock()
}
}

Expand Down

0 comments on commit 5f982b8

Please sign in to comment.