]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/communicator.cpp
Don't create the WinSock helper until the first socket is created
[libs/net.git] / source / net / communicator.cpp
index f77ada2159d427788a74a414285aaa67a3ad1ee4..51202b5f659c07b733e5e93dbb3750142b4b884e 100644 (file)
@@ -1,5 +1,5 @@
-#include <cstring>
 #include "communicator.h"
+#include <cstring>
 #include "streamsocket.h"
 
 using namespace std;
@@ -23,7 +23,7 @@ public:
 HandshakeProtocol::HandshakeProtocol():
        Protocol(0x7F00)
 {
-       add<Handshake>()(&Handshake::hash);
+       add<Handshake>(&Handshake::hash);
 }