Don't crash if network handshake fails and we don't get any data

This commit is contained in:
baldurk
2016-06-01 10:47:28 +02:00
parent ab84b84ba4
commit 4b149abdbd
+4
View File
@@ -378,6 +378,10 @@ public:
Serialiser *ser = NULL;
GetPacket(type, ser);
// failed handshaking
if(m_Socket == NULL || ser == NULL)
return;
RDCASSERT(type == ePacket_Handshake || type == ePacket_Busy);
if(type == ePacket_Handshake)