Unlock stopRunning.
This commit is contained in:
parent
fe822d0c85
commit
e58eddcadf
|
@ -328,6 +328,7 @@ extension H264Encoder: Running {
|
|||
#if os(iOS)
|
||||
NotificationCenter.default.removeObserver(self)
|
||||
#endif
|
||||
OSAtomicAnd32Barrier(0, &self.locked)
|
||||
self.isRunning.mutate { $0 = false }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue