1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-09-28 22:40:50 +00:00

Core: Fix null-ref error in disposing connection when fatal error occurs during download

This commit is contained in:
gnosygnu 2016-11-15 17:06:40 -05:00
parent ab209ef91e
commit 2cc39bf6bc

View File

@ -544,8 +544,10 @@ public class IoEngine_system extends IoEngine_base {
xrg.Prog_running_(false);
try {
if (src_stream != null) src_stream.close();
if (src_conn != null) src_conn.disconnect();
src_conn.getInputStream().close();
if (src_conn != null) {
src_conn.disconnect();
src_conn.getInputStream().close();
}
} catch (Exception exc) {
Err_.Noop(exc);
}