Skip to content

Commit

Permalink
Merge pull request #153 from hyperoslo/fix/stop
Browse files Browse the repository at this point in the history
Stop in deinit
  • Loading branch information
zenangst committed May 4, 2016
2 parents dcce0d2 + b312ce7 commit 37c0a50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/CameraView/CameraMan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ class CameraMan {
}

func stop() {
dispatch_async(queue) {
self.session.stopRunning()
}
self.session.stopRunning()
}

func switchCamera(completion: (() -> Void)? = nil) {
Expand Down

0 comments on commit 37c0a50

Please sign in to comment.