Parcourir la source

Fixed compilation on MacOS

Paul-Louis Ageneau il y a 5 ans
Parent
commit
381d0ead1a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/peerconnection.cpp

+ 1 - 1
src/peerconnection.cpp

@@ -662,7 +662,7 @@ bool PeerConnection::changeState(State state) {
 
 	if (state == State::Closed)
 		// This is the last state change, so we may steal the callback
-		mProcessor->enqueue([this, cb = std::move(mStateChangeCallback)]() { cb(State::Closed); });
+		mProcessor->enqueue([cb = std::move(mStateChangeCallback)]() { cb(State::Closed); });
 	else
 		mProcessor->enqueue([this, state]() { mStateChangeCallback(state); });