Browse Source

Cleaned up old WSAInit call for Win32

Paul-Louis Ageneau 5 years ago
parent
commit
80e2115a7b
1 changed files with 0 additions and 9 deletions
  1. 0 9
      src/peerconnection.cpp

+ 0 - 9
src/peerconnection.cpp

@@ -33,11 +33,6 @@ using std::shared_ptr;
 using std::weak_ptr;
 using std::weak_ptr;
 
 
 PeerConnection::PeerConnection() : PeerConnection(Configuration()) {
 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)
 PeerConnection::PeerConnection(const Configuration &config)
@@ -49,10 +44,6 @@ PeerConnection::~PeerConnection() {
 	mSctpTransport.reset();
 	mSctpTransport.reset();
 	mDtlsTransport.reset();
 	mDtlsTransport.reset();
 	mIceTransport.reset();
 	mIceTransport.reset();
-
-#ifdef _WIN32
-	WSACleanup();
-#endif
 }
 }
 
 
 void PeerConnection::close() {
 void PeerConnection::close() {