assert on main thread

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent b2091431dc
commit 333fb6c60f

@ -55,6 +55,8 @@ import Foundation
// MARK: - Service action handlers // MARK: - Service action handlers
public func handleState(_ state: CallState) { public func handleState(_ state: CallState) {
assert(Thread.isMainThread)
Logger.verbose("\(TAG) in \(#function) new state: \(state)") Logger.verbose("\(TAG) in \(#function) new state: \(state)")
switch state { switch state {

Loading…
Cancel
Save