mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-11-07 08:25:33 +00:00
Fix potentially send data to invalid port
This commit is contained in:
@@ -64,9 +64,10 @@ struct TcpNetworkedInternalData
|
||||
{
|
||||
m_tcpSocket.SetSendTimeout(m_timeOutInSeconds, 0);
|
||||
m_tcpSocket.SetReceiveTimeout(m_timeOutInSeconds, 0);
|
||||
int key = SHARED_MEMORY_MAGIC_NUMBER;
|
||||
m_tcpSocket.Send((uint8*)&key, 4);
|
||||
}
|
||||
int key = SHARED_MEMORY_MAGIC_NUMBER;
|
||||
m_tcpSocket.Send((uint8*)&key, 4);
|
||||
|
||||
|
||||
return m_isConnected;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user