Changeset 8b184f8


Ignore:
Timestamp:
Apr 28, 2011 6:05:03 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
fe21748
Parents:
5ed22d5c
Message:

one more zero-length torrent check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    r5ed22d5c r8b184f8  
    984984            return _("Pieces are too large in \"{0}\" ({1}B), deleting it.", info.getName(), DataHelper.formatSize2(info.getPieceLength(0))) + ' ' +
    985985                   _("Limit is {0}B", DataHelper.formatSize2(Storage.MAX_PIECE_SIZE));
     986        } else if (info.getTotalLength() <= 0) {
     987            return _("Torrent \"{0}\" has no data, deleting it!", info.getName());
    986988        } else if (info.getTotalLength() > Storage.MAX_TOTAL_SIZE) {
    987989            System.out.println("torrent info: " + info.toString());
Note: See TracChangeset for help on using the changeset viewer.