Browse Source

Fix issue 1231


git-svn-id: http://svn.dmdirc.com/trunk@4043 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 years ago
parent
commit
1034066638
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/com/dmdirc/addons/dcc/DCCSend.java

+ 2
- 2
src/com/dmdirc/addons/dcc/DCCSend.java View File

@@ -287,8 +287,8 @@ public class DCCSend extends DCC {
287 287
 	@Override
288 288
 	protected void socketClosed() {
289 289
 		// Try to close both, even if one fails.
290
-		try { out.close(); } catch (IOException e) { }
291
-		try { in.close(); } catch (IOException e) { }
290
+		if (out != null) { try { out.close(); } catch (IOException e) { } }
291
+		if (in != null) { try { in.close(); } catch (IOException e) { } }
292 292
 		out = null;
293 293
 		in = null;
294 294
 		if (handler != null) {

Loading…
Cancel
Save