- Resume download fix
This commit is contained in:
tonikelope 2020-01-05 20:15:49 +01:00
parent c5320cb5f3
commit 7a3675fc2f
4 changed files with 5 additions and 17 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.tonikelope</groupId>
<artifactId>MegaBasterd</artifactId>
<version>7.1</version>
<version>7.2</version>
<packaging>jar</packaging>
<dependencies>
<dependency>

View File

@ -119,7 +119,7 @@ public class Download implements Transference, Runnable, SecureSingleThreadNotif
_exit = false;
_progress_watchdog_lock = new Object();
_last_download_url = null;
_provision_ok = true;
_provision_ok = false;
_progress = 0L;
_notified = false;
_main_panel = main_panel;
@ -165,7 +165,7 @@ public class Download implements Transference, Runnable, SecureSingleThreadNotif
_exit = false;
_progress_watchdog_lock = new Object();
_last_download_url = null;
_provision_ok = true;
_provision_ok = false;
_progress = 0L;
_notified = false;
_main_panel = download.getMain_panel();
@ -976,7 +976,7 @@ public class Download implements Transference, Runnable, SecureSingleThreadNotif
_provision_ok = false;
try {
if (_file_name == null) {
if (_file_name == null && !_restart) {
file_info = getMegaFileMetadata(_url, getMain_panel().getView(), retry);
@ -1010,18 +1010,6 @@ public class Download implements Transference, Runnable, SecureSingleThreadNotif
}
} else if (_restart) {
try {
insertDownload(_url, _ma.getFull_email(), _download_path, _file_name, _file_key, _file_size, _file_pass, _file_noexpire, _custom_chunks_dir);
_provision_ok = true;
} catch (SQLException ex) {
_status_error = "Error registering download: file is already downloading.";
}
} else {
_provision_ok = true;

View File

@ -54,7 +54,7 @@ import javax.swing.UIManager;
*/
public final class MainPanel {
public static final String VERSION = "7.1";
public static final String VERSION = "7.2";
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
public static final int STREAMER_PORT = 1337;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

After

Width:  |  Height:  |  Size: 190 KiB