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