Browse Source

Fixed compilation on MacOS

Paul-Louis Ageneau 5 năm trước cách đây
mục cha
commit
381d0ead1a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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); });