mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-05-29 04:50:14 +02:00
1.49
This commit is contained in:
parent
93802a2bf3
commit
1c27d781ec
@ -309,6 +309,8 @@ public final class Download implements Transference, Runnable, SecureNotifiable
|
||||
@Override
|
||||
public void pause() {
|
||||
|
||||
System.out.println("Pause hello");
|
||||
|
||||
if (isPause()) {
|
||||
|
||||
setPause(false);
|
||||
@ -332,6 +334,8 @@ public final class Download implements Transference, Runnable, SecureNotifiable
|
||||
}
|
||||
|
||||
_main_panel.getDownload_manager().secureNotify();
|
||||
|
||||
System.out.println("Pause bye");
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -1073,12 +1077,10 @@ public final class Download implements Transference, Runnable, SecureNotifiable
|
||||
|
||||
}
|
||||
|
||||
public synchronized void stopDownloader() {
|
||||
public void stopDownloader() {
|
||||
|
||||
if (!_exit) {
|
||||
|
||||
System.out.println("Stopping downloader...");
|
||||
|
||||
_exit = true;
|
||||
|
||||
try {
|
||||
@ -1122,7 +1124,7 @@ public final class Download implements Transference, Runnable, SecureNotifiable
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void emergencyStopDownloader(String reason) {
|
||||
public void emergencyStopDownloader(String reason) {
|
||||
|
||||
if (!_exit && _fatal_error == null) {
|
||||
_fatal_error = reason != null ? reason : "FATAL ERROR!";
|
||||
|
@ -360,7 +360,6 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
|
||||
private void pause_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pause_buttonActionPerformed
|
||||
|
||||
_download.pause();
|
||||
|
||||
}//GEN-LAST:event_pause_buttonActionPerformed
|
||||
|
||||
@Override
|
||||
|
@ -59,7 +59,7 @@ import static megabasterd.Transference.MAX_TRANSFERENCE_SPEED_DEFAULT;
|
||||
*/
|
||||
public final class MainPanel {
|
||||
|
||||
public static final String VERSION = "1.48";
|
||||
public static final String VERSION = "1.49";
|
||||
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
|
||||
public static final int STREAMER_PORT = 1337;
|
||||
public static final int WATCHDOG_PORT = 1338;
|
||||
|
@ -935,7 +935,7 @@ public final class Upload implements Transference, Runnable, SecureNotifiable {
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void emergencyStopUploader(String reason) {
|
||||
public void emergencyStopUploader(String reason) {
|
||||
if (!_exit && _fatal_error == null) {
|
||||
_fatal_error = reason != null ? reason : "FATAL ERROR!";
|
||||
|
||||
@ -957,7 +957,8 @@ public final class Upload implements Transference, Runnable, SecureNotifiable {
|
||||
_exit = exit;
|
||||
}
|
||||
|
||||
public synchronized void stopUploader() {
|
||||
public void stopUploader() {
|
||||
|
||||
if (!_exit) {
|
||||
_exit = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user