mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Check for no peers (shouldn't happen, but we never know)
This commit is contained in:
parent
fce8fc3a65
commit
bef194c90e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user