mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-27 10:38:48 +03:00
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
Block a user