socket UGUHH

This commit is contained in:
JuiceyDev 2026-03-06 10:28:41 +01:00
parent 38cc63e441
commit d99ef6a1b8

View file

@ -60,7 +60,14 @@ Socket::Socket(bool response)
{
m_end = SOCKET_CLIENT_END;
Socket *socket = new Socket(1);
s_serverConnection->NewIncomingSocket(socket);
if ( s_serverConnection != NULL )
{
s_serverConnection->NewIncomingSocket(socket);
}
else
{
app.DebugPrintf("SOCKET: Warning - attempted to notify server of new incoming socket but s_serverConnection is NULL\n");
}
}
for( int i = 0; i < 2; i++ )