check if addr message is empty before processing it

This commit is contained in:
Jonathan Warren 2013-03-05 11:05:05 -05:00
parent 8453b1dd00
commit eb05cec5b1

View File

@ -1662,7 +1662,7 @@ class receiveDataThread(QThread):
printLock.release()
#print 'lengthOfNumberOfAddresses', lengthOfNumberOfAddresses
if numberOfAddressesIncluded > 1000:
if numberOfAddressesIncluded > 1000 or numberOfAddressesIncluded == 0:
return
needToWriteKnownNodesToDisk = False
for i in range(0,numberOfAddressesIncluded):