Unlock stopRunning.

This commit is contained in:
shogo4405 2019-08-04 19:47:53 +09:00
parent fe822d0c85
commit e58eddcadf
1 changed files with 1 additions and 0 deletions

View File

@ -328,6 +328,7 @@ extension H264Encoder: Running {
#if os(iOS)
NotificationCenter.default.removeObserver(self)
#endif
OSAtomicAnd32Barrier(0, &self.locked)
self.isRunning.mutate { $0 = false }
}
}