Check for no peers (shouldn't happen, but we never know)

This commit is contained in:
simon.kagstrom 2010-02-14 10:09:31 +00:00
parent fce8fc3a65
commit bef194c90e

View File

@ -188,7 +188,7 @@ public:
NetworkUpdatePeerInfo *ps = peerList->peers;
const char **messages;
if (ps == NULL)
if (ps == NULL || peerList->n_peers == 0)
return;
this->freePeers();