mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Core: Fix null-ref error in disposing connection when fatal error occurs during download
This commit is contained in:
parent
ab209ef91e
commit
2cc39bf6bc
@ -544,8 +544,10 @@ public class IoEngine_system extends IoEngine_base {
|
|||||||
xrg.Prog_running_(false);
|
xrg.Prog_running_(false);
|
||||||
try {
|
try {
|
||||||
if (src_stream != null) src_stream.close();
|
if (src_stream != null) src_stream.close();
|
||||||
if (src_conn != null) src_conn.disconnect();
|
if (src_conn != null) {
|
||||||
src_conn.getInputStream().close();
|
src_conn.disconnect();
|
||||||
|
src_conn.getInputStream().close();
|
||||||
|
}
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
Err_.Noop(exc);
|
Err_.Noop(exc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user