Remove debug info

This commit is contained in:
Flare Microsystems
2024-11-16 21:15:53 -08:00
parent 32203cde49
commit 29661a8d21

View File

@@ -122,7 +122,7 @@ public abstract class NetworkHandler {
for (FileTransferInfo transferInfo : downloadQueue.values())
{
Util.cleanClose(transferInfo.outputStream);
//transferInfo.file.delete();
transferInfo.file.delete();
}
}
@@ -235,19 +235,18 @@ public abstract class NetworkHandler {
if (fileTransferInfo != null)
{
Util.cleanClose(fileTransferInfo);
//fileTransferInfo.file.delete();
fileTransferInfo.file.delete();
}
File file = downloadComplete.get(fileId);
if (file != null)
{
//file.delete();
file.delete();
}
}
public void beginFile(long fileId, long expectedSize) throws IOException {
File file = new File(fileId + "-cj-tmp.zip");
System.out.println("Creating file " + file.toString());
//file.deleteOnExit();
File file = File.createTempFile(fileId + "-cj-tmp", ".zip");
file.deleteOnExit();
OutputStream is = null;
try
{
@@ -270,7 +269,6 @@ public abstract class NetworkHandler {
{
Util.cleanClose(fileTransferInfo);
this.downloadComplete.put(fileId, fileTransferInfo.file);
System.out.println("Completed file " + fileTransferInfo.file.toString());
synchronized (this.downloadComplete)
{
this.downloadComplete.notifyAll();