public void waitForPeersToPopulate() {
		while (!peersPopulated) {
			while (manager.peers.size() < 1)
				try {
					Thread.sleep(10L);
				} catch (InterruptedException e) {}
			for (Peer p : manager.peers)
			{
				if (p.availablePieces.size() > 0)
				{
					this.peersPopulated = true;
					break;
				}
			}
		}
	}