diff options
Diffstat (limited to 'src')
-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); |