Fixed server crash caused by double delete a socket #4535
This commit is contained in:
parent
7c6561b3da
commit
7ab1081b3f
|
@ -55,7 +55,6 @@ SecureListenSocket::accept()
|
|||
m_socketMultiplexer,
|
||||
ARCH->acceptSocket(m_socket, NULL));
|
||||
socket->initSsl(true);
|
||||
m_secureSocketSet.insert(socket);
|
||||
|
||||
if (socket != NULL) {
|
||||
setListeningJob();
|
||||
|
@ -78,6 +77,8 @@ SecureListenSocket::accept()
|
|||
|
||||
socket->secureAccept();
|
||||
|
||||
m_secureSocketSet.insert(socket);
|
||||
|
||||
return dynamic_cast<IDataSocket*>(socket);
|
||||
}
|
||||
catch (XArchNetwork&) {
|
||||
|
|
Loading…
Reference in New Issue