Develop #1
@@ -58,6 +58,12 @@ public class ProgressMonitor implements Runnable {
|
|||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// If all chunks are completed, print a final message and exit the loop
|
// If all chunks are completed, print a final message and exit the loop
|
||||||
|
if (completedChunks == chunks.size())
|
||||||
|
{
|
||||||
|
|
||||||
|
System.out.println("Progress Monitor: All chunks successfully downloaded. Exiting monitor thread.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Thread.sleep(monitorDelayMs);
|
Thread.sleep(monitorDelayMs);
|
||||||
|
|||||||
Reference in New Issue
Block a user