Browse Source

Removed useless HttpProxyTransport send mutex

Paul-Louis Ageneau 2 years ago
parent
commit
868abb4b1b
2 changed files with 0 additions and 3 deletions
  1. 0 2
      src/impl/httpproxytransport.cpp
  2. 0 1
      src/impl/httpproxytransport.hpp

+ 0 - 2
src/impl/httpproxytransport.cpp

@@ -39,8 +39,6 @@ void HttpProxyTransport::start() {
 void HttpProxyTransport::stop() { unregisterIncoming(); }
 void HttpProxyTransport::stop() { unregisterIncoming(); }
 
 
 bool HttpProxyTransport::send(message_ptr message) {
 bool HttpProxyTransport::send(message_ptr message) {
-	std::lock_guard lock(mSendMutex);
-
 	if (state() != State::Connected)
 	if (state() != State::Connected)
 		throw std::runtime_error("HTTP proxy connection is not open");
 		throw std::runtime_error("HTTP proxy connection is not open");
 
 

+ 0 - 1
src/impl/httpproxytransport.hpp

@@ -41,7 +41,6 @@ private:
 	string mHostname;
 	string mHostname;
 	string mService;
 	string mService;
 	binary mBuffer;
 	binary mBuffer;
-	std::mutex mSendMutex;
 };
 };
 
 
 } // namespace rtc::impl
 } // namespace rtc::impl