aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/client/CL_parse.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-12 20:47:02 +0000
committerHolger Zickner <[email protected]>2004-07-12 20:47:02 +0000
commit4dca2574fe978cb98a9320f6db8176ee77973e91 (patch)
tree6cd1d23b2136f4f3817de7a0ba71c6f0d9ff52d3 /src/jake2/client/CL_parse.java
parent25252922d19cd51c8bf7a3544d6b2a82c8a26fff (diff)
cleanups
Diffstat (limited to 'src/jake2/client/CL_parse.java')
-rw-r--r--src/jake2/client/CL_parse.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/jake2/client/CL_parse.java b/src/jake2/client/CL_parse.java
index a36e677..f50857d 100644
--- a/src/jake2/client/CL_parse.java
+++ b/src/jake2/client/CL_parse.java
@@ -2,7 +2,7 @@
* CL_parse.java
* Copyright (C) 2004
*
- * $Id: CL_parse.java,v 1.5 2004-07-09 06:50:50 hzi Exp $
+ * $Id: CL_parse.java,v 1.6 2004-07-12 20:47:01 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -218,7 +218,9 @@ public class CL_parse extends CL_view {
Com.Printf("Server does not have this file.\n");
if (cls.download != null) {
// if here, we tried to resume a file but the server said no
- fclose(cls.download);
+ try {
+ cls.download.close();
+ } catch (IOException e) {}
cls.download = null;
}
CL.RequestNextDownload();
@@ -262,7 +264,9 @@ public class CL_parse extends CL_view {
// Com.Printf ("100%%\n");
- fclose(cls.download);
+ try {
+ cls.download.close();
+ } catch (IOException e) {}
// rename the temp file to it's final name
oldn = DownloadFileName(cls.downloadtempname);
@@ -693,7 +697,9 @@ public class CL_parse extends CL_view {
Com.Printf("Server disconnected, reconnecting\n");
if (cls.download != null) {
//ZOID, close download
- fclose(cls.download);
+ try {
+ cls.download.close();
+ } catch (IOException e) {}
cls.download = null;
}
cls.state = ca_connecting;