Prechádzať zdrojové kódy

Cleaned up old WSAInit call for Win32

Paul-Louis Ageneau 5 rokov pred
rodič
commit
80e2115a7b
1 zmenil súbory, kde vykonal 0 pridanie a 9 odobranie
  1. 0 9
      src/peerconnection.cpp

+ 0 - 9
src/peerconnection.cpp

@@ -33,11 +33,6 @@ using std::shared_ptr;
 using std::weak_ptr;
 
 PeerConnection::PeerConnection() : PeerConnection(Configuration()) {
-#ifdef _WIN32
-	WSADATA wsaData;
-	if (WSAStartup(MAKEWORD(2, 2), &wsaData))
-		throw std::runtime_error("WSAStartup failed, error=" + std::to_string(WSAGetLastError()));
-#endif
 }
 
 PeerConnection::PeerConnection(const Configuration &config)
@@ -49,10 +44,6 @@ PeerConnection::~PeerConnection() {
 	mSctpTransport.reset();
 	mDtlsTransport.reset();
 	mIceTransport.reset();
-
-#ifdef _WIN32
-	WSACleanup();
-#endif
 }
 
 void PeerConnection::close() {