diff options
author | Mattes D <github@xoft.cz> | 2020-04-15 14:13:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 14:13:40 +0200 |
commit | 42cc736bfdda0b7d0464d485eb957f5ea547bdae (patch) | |
tree | 7efab1be3fe45449f1d427227e683673cb2fbbb1 /src/OSSupport | |
parent | Fixed Lua Vector unification. (#4652) (diff) | |
download | cuberite-42cc736bfdda0b7d0464d485eb957f5ea547bdae.tar cuberite-42cc736bfdda0b7d0464d485eb957f5ea547bdae.tar.gz cuberite-42cc736bfdda0b7d0464d485eb957f5ea547bdae.tar.bz2 cuberite-42cc736bfdda0b7d0464d485eb957f5ea547bdae.tar.lz cuberite-42cc736bfdda0b7d0464d485eb957f5ea547bdae.tar.xz cuberite-42cc736bfdda0b7d0464d485eb957f5ea547bdae.tar.zst cuberite-42cc736bfdda0b7d0464d485eb957f5ea547bdae.zip |
Diffstat (limited to 'src/OSSupport')
-rw-r--r-- | src/OSSupport/ServerHandleImpl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/OSSupport/ServerHandleImpl.cpp b/src/OSSupport/ServerHandleImpl.cpp index 56509a1a2..371125227 100644 --- a/src/OSSupport/ServerHandleImpl.cpp +++ b/src/OSSupport/ServerHandleImpl.cpp @@ -63,7 +63,10 @@ cServerHandleImpl::~cServerHandleImpl() void cServerHandleImpl::Close(void) { // Stop the listener sockets: - evconnlistener_disable(m_ConnListener); + if (m_ConnListener != nullptr) + { + evconnlistener_disable(m_ConnListener); + } if (m_SecondaryConnListener != nullptr) { evconnlistener_disable(m_SecondaryConnListener); |