瀏覽代碼

Fix issue 1231


git-svn-id: http://svn.dmdirc.com/trunk@4043 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 年之前
父節點
當前提交
1034066638
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/com/dmdirc/addons/dcc/DCCSend.java

+ 2
- 2
src/com/dmdirc/addons/dcc/DCCSend.java 查看文件

287
 	@Override
287
 	@Override
288
 	protected void socketClosed() {
288
 	protected void socketClosed() {
289
 		// Try to close both, even if one fails.
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
 		out = null;
292
 		out = null;
293
 		in = null;
293
 		in = null;
294
 		if (handler != null) {
294
 		if (handler != null) {

Loading…
取消
儲存