diff options
author | Mattes D <github@xoft.cz> | 2015-01-16 16:13:02 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-01-22 20:12:59 +0100 |
commit | ae29a82ebae4742e81901f900010ea5cda2b9c4b (patch) | |
tree | 9423499ddead7ac7f1771b35f4f62e19999a8d56 /src/OSSupport | |
parent | cNetwork: Handle WSA initialization failures. (diff) | |
download | cuberite-ae29a82ebae4742e81901f900010ea5cda2b9c4b.tar cuberite-ae29a82ebae4742e81901f900010ea5cda2b9c4b.tar.gz cuberite-ae29a82ebae4742e81901f900010ea5cda2b9c4b.tar.bz2 cuberite-ae29a82ebae4742e81901f900010ea5cda2b9c4b.tar.lz cuberite-ae29a82ebae4742e81901f900010ea5cda2b9c4b.tar.xz cuberite-ae29a82ebae4742e81901f900010ea5cda2b9c4b.tar.zst cuberite-ae29a82ebae4742e81901f900010ea5cda2b9c4b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/Network.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OSSupport/Network.cpp b/src/OSSupport/Network.cpp index c26a8e17d..decd111ea 100644 --- a/src/OSSupport/Network.cpp +++ b/src/OSSupport/Network.cpp @@ -854,6 +854,9 @@ cServerHandleImplPtr cServerHandleImpl::Listen( bool cServerHandleImpl::Listen(UInt16 a_Port) { + // Make sure the cNetwork internals are innitialized: + cNetworkSingleton::Get(); + // Set up the main socket: // It should listen on IPv6 with IPv4 fallback, when available; IPv4 when IPv6 is not available. bool NeedsTwoSockets = false; |