summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-01 15:35:42 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-01 15:35:42 +0200
commit0e35f2225a319f2fdf471c5fbf3ffda728bae762 (patch)
tree37393d9a0ac07197a60282638b124a76315d4bcc /source
parentMineShafts: added random torches, fixed beams on chunk boundaries (diff)
downloadcuberite-0e35f2225a319f2fdf471c5fbf3ffda728bae762.tar
cuberite-0e35f2225a319f2fdf471c5fbf3ffda728bae762.tar.gz
cuberite-0e35f2225a319f2fdf471c5fbf3ffda728bae762.tar.bz2
cuberite-0e35f2225a319f2fdf471c5fbf3ffda728bae762.tar.lz
cuberite-0e35f2225a319f2fdf471c5fbf3ffda728bae762.tar.xz
cuberite-0e35f2225a319f2fdf471c5fbf3ffda728bae762.tar.zst
cuberite-0e35f2225a319f2fdf471c5fbf3ffda728bae762.zip
Diffstat (limited to '')
-rw-r--r--source/OSSupport/ListenThread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/OSSupport/ListenThread.cpp b/source/OSSupport/ListenThread.cpp
index 706c820b4..bc14aa0ba 100644
--- a/source/OSSupport/ListenThread.cpp
+++ b/source/OSSupport/ListenThread.cpp
@@ -215,7 +215,7 @@ void cListenThread::Execute(void)
}
for (cSockets::iterator itr = m_Sockets.begin(), end = m_Sockets.end(); itr != end; ++itr)
{
- if (FD_ISSET(itr->GetSocket(), &fdRead))
+ if (itr->IsValid() && FD_ISSET(itr->GetSocket(), &fdRead))
{
cSocket Client = (m_Family == cSocket::IPv4) ? itr->AcceptIPv4() : itr->AcceptIPv6();
m_Callback.OnConnectionAccepted(Client);