public void storageChecked(Storage storage, int num, boolean checked) { // allocating = false; if (!allChecked && !checking) { // Use the MetaInfo from the storage since our own might not // yet be setup correctly. // MetaInfo meta = storage.getMetaInfo(); // if (meta != null) // System.out.print("Checking existing " // + meta.getPieces() // + " pieces: "); checking = true; } if (!checking) { if (_log.shouldLog(Log.INFO)) _log.info("Got " + (checked ? "" : "BAD ") + "piece: " + num); if (completeListener != null) completeListener.gotPiece(this); } }