mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 08:22:50 +02:00
- added null pointer check
This commit is contained in:
@@ -262,7 +262,7 @@ void ConnectionSlot::update(bool checkForNewClients) {
|
|||||||
this->clearChatInfo();
|
this->clearChatInfo();
|
||||||
|
|
||||||
bool gotTextMsg = true;
|
bool gotTextMsg = true;
|
||||||
for(;socket->hasDataToRead() == true && gotTextMsg == true;) {
|
for(;socket != NULL && socket->hasDataToRead() == true && gotTextMsg == true;) {
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] polling for networkMessageType...\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] polling for networkMessageType...\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
NetworkMessageType networkMessageType= getNextMessageType(true);
|
NetworkMessageType networkMessageType= getNextMessageType(true);
|
||||||
|
Reference in New Issue
Block a user