mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
- added null pointer check
This commit is contained in:
parent
a6d33fe569
commit
fc31e7713d
@ -262,7 +262,7 @@ void ConnectionSlot::update(bool checkForNewClients) {
|
||||
this->clearChatInfo();
|
||||
|
||||
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__);
|
||||
|
||||
NetworkMessageType networkMessageType= getNextMessageType(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user