         default:
             break
         }
-        createAnswer(initsPublisher: initsPublisher,
+        createAnswer(isSender: initsPublisher,
                 offer: offer.sdp,
                 constraints: webRTCConfiguration.nativeConstraints)
         { sdp, error in

        Logger.debug(type: .peerChannel, message: "create and send update-answer")
        lock.lock()
        state = .waitingUpdateComplete
        createAnswer(initsPublisher: false,
                offer: offer,
                constraints: webRTCConfiguration.nativeConstraints)
        { answer, error in

        }
    }

    func createAnswer(isSender: Bool,
                      offer: String,
                      constraints: RTCMediaConstraints,
                      handler: @escaping (String?, Error?) -> Void) {
