Fixed Video Crashing Issue

This commit is contained in:
Jack Chen 2017-07-07 07:52:03 -04:00 committed by GitHub
parent 7aee7f5f1b
commit 6b41e540dd

View file

@ -86,7 +86,7 @@ open class SwiftyCamButton: UIButton {
case .began: case .began:
delegate?.buttonDidBeginLongPress() delegate?.buttonDidBeginLongPress()
startTimer() startTimer()
case .cancelled, .ended, .changed, .failed: case .ended:
invalidateTimer() invalidateTimer()
delegate?.buttonDidEndLongPress() delegate?.buttonDidEndLongPress()
default: default: