summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-16 16:13:02 +0100
committerMattes D <github@xoft.cz>2015-01-22 20:12:59 +0100
commitae29a82ebae4742e81901f900010ea5cda2b9c4b (patch)
tree9423499ddead7ac7f1771b35f4f62e19999a8d56 /src/OSSupport
parentcNetwork: Handle WSA initialization failures. (diff)
downloadcuberite-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.cpp3
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;