Merge remote-tracking branch 'refs/remotes/pluto/master'
#Conflicts: # AutoCat.xcodeproj/project.pbxproj
This commit is contained in:
commit
23cf2018ff
@ -114,6 +114,12 @@ extension VehicleRecordService: VehicleRecordServiceProtocol {
|
|||||||
throw VehicleRecordError.emptyUrl
|
throw VehicleRecordError.emptyUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
locationTask?.cancel()
|
||||||
|
locationTask = nil
|
||||||
|
self.url = nil
|
||||||
|
let location = self.location
|
||||||
|
self.location = nil
|
||||||
|
|
||||||
await recordService.stopRecording()
|
await recordService.stopRecording()
|
||||||
|
|
||||||
async let recognitionTask = recordService.recognizeText(from: url)
|
async let recognitionTask = recordService.recognizeText(from: url)
|
||||||
@ -121,10 +127,6 @@ extension VehicleRecordService: VehicleRecordServiceProtocol {
|
|||||||
|
|
||||||
let (text, duration) = await (recognitionTask, try? durationTask)
|
let (text, duration) = await (recognitionTask, try? durationTask)
|
||||||
|
|
||||||
locationTask?.cancel()
|
|
||||||
locationTask = nil
|
|
||||||
self.url = nil
|
|
||||||
|
|
||||||
let record = AudioRecordDto(
|
let record = AudioRecordDto(
|
||||||
path: url.lastPathComponent,
|
path: url.lastPathComponent,
|
||||||
number: await getPlateNumber(from: text),
|
number: await getPlateNumber(from: text),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user