修复一个有可能导致下载失败的问题

pull/330/head
AriaLyy 8 years ago
parent 360debecc4
commit b9f0fe7afc
  1. 4
      Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java

@ -300,7 +300,9 @@ public class CommonUtil {
public static Properties loadConfig(File file) {
Properties properties = new Properties();
FileInputStream fis = null;
if (!file.exists()){
createFile(file.getPath());
}
try {
fis = new FileInputStream(file);
properties.load(fis);

Loading…
Cancel
Save