summaryrefslogtreecommitdiff
path: root/libs/pbd/crossthread.win.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-12-04 10:07:11 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-12-04 10:07:11 -0500
commit697c397f379481efd5f50cd772a9dcd659ecede7 (patch)
tree11a14110595e95e0721e576ad1c0b69a35b908dc /libs/pbd/crossthread.win.cc
parent4e8dfda88093f3648bdbc0e6c292ec41fadc6d55 (diff)
move WSAStartup() and WSACleanup() out of per-object methods into per-library init/cleanup methods
Diffstat (limited to 'libs/pbd/crossthread.win.cc')
-rw-r--r--libs/pbd/crossthread.win.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/pbd/crossthread.win.cc b/libs/pbd/crossthread.win.cc
index 32f52fc12c..5309916ddb 100644
--- a/libs/pbd/crossthread.win.cc
+++ b/libs/pbd/crossthread.win.cc
@@ -25,13 +25,6 @@ CrossThreadChannel::CrossThreadChannel (bool non_blocking)
, receive_socket()
, recv_address()
{
- WSADATA wsaData;
-
- if(WSAStartup(MAKEWORD(1,1),&wsaData) != 0) {
- std::cerr << "CrossThreadChannel::CrossThreadChannel() Winsock initialization failed with error: " << WSAGetLastError() << std::endl;
- return;
- }
-
struct sockaddr_in send_address;
// Create Send Socket
@@ -104,7 +97,6 @@ CrossThreadChannel::~CrossThreadChannel ()
closesocket(send_socket);
closesocket(receive_socket);
- WSACleanup();
}
void